google-cloud-functions-v2 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a84cfe684d197806a2385398444d215cf441c9d344cf5dd9510650ed2bf5a813
4
- data.tar.gz: 6930a19679bbcccb9128b8ba163dfa767de79067e47c0a26b1c305c987efad12
3
+ metadata.gz: 012a9474a58f8e02a1f00ba27190c71746da88e547f77094583595ce39db2a9e
4
+ data.tar.gz: 6f9c3c16d2db384900fad7876e21ed54321450c381c2bed5b4747e4123dc0f4b
5
5
  SHA512:
6
- metadata.gz: 53511fa8acbed5395bc927287cef772e2b8506b85d299750df53fe20793c08acd19630ae3a2a5bbf888c5f0608306149e0b971b634105a7564ee9f2786e5228e
7
- data.tar.gz: d70201eef45a956c178199549265b5210b4db6f3778581593ea1418129b7aa65fd777f4a3df0a6a4a44940011dc6b5187e9521eaa06c814fac40b7081801848f
6
+ metadata.gz: d0defe9614c2fd1ac748048a62558f1b725d6671b9cd92a5052289ae23b46ec2b3a0fed1f5b267796587b0704d5f202e482693da37adb332e0a63954ef23d974
7
+ data.tar.gz: 8a8c954834cac8324abb22b0bf116c7701c04ca4da01028ab0cca869094c7fe9b3035c8ff407e85eb6feb91b08fc8ad386d743075e67e25c01577867ecefd197
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -294,14 +294,17 @@ module Google
294
294
  # the default parameter values, pass an empty Hash as a request object (see above).
295
295
  #
296
296
  # @param parent [::String]
297
- # Required. The project and location from which the function should be listed,
298
- # specified in the format `projects/*/locations/*`
299
- # If you want to list functions in all locations, use "-" in place of a
300
- # location. When listing functions in all locations, if one or more
301
- # location(s) are unreachable, the response will contain functions from all
302
- # reachable locations along with the names of any unreachable locations.
297
+ # Required. The project and location from which the function should be
298
+ # listed, specified in the format `projects/*/locations/*` If you want to
299
+ # list functions in all locations, use "-" in place of a location. When
300
+ # listing functions in all locations, if one or more location(s) are
301
+ # unreachable, the response will contain functions from all reachable
302
+ # locations along with the names of any unreachable locations.
303
303
  # @param page_size [::Integer]
304
- # Maximum number of functions to return per call.
304
+ # Maximum number of functions to return per call. The largest allowed
305
+ # page_size is 1,000, if the page_size is omitted or specified as greater
306
+ # than 1,000 then it will be replaced as 1,000. The size of the list
307
+ # response can be less than specified when used with filters.
305
308
  # @param page_token [::String]
306
309
  # The value returned by the last
307
310
  # `ListFunctionsResponse`; indicates that
@@ -405,8 +408,8 @@ module Google
405
408
  # the default parameter values, pass an empty Hash as a request object (see above).
406
409
  #
407
410
  # @param parent [::String]
408
- # Required. The project and location in which the function should be created, specified
409
- # in the format `projects/*/locations/*`
411
+ # Required. The project and location in which the function should be created,
412
+ # specified in the format `projects/*/locations/*`
410
413
  # @param function [::Google::Cloud::Functions::V2::Function, ::Hash]
411
414
  # Required. Function to be created.
412
415
  # @param function_id [::String]
@@ -715,14 +718,30 @@ module Google
715
718
  # @param options [::Gapic::CallOptions, ::Hash]
716
719
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
717
720
  #
718
- # @overload generate_upload_url(parent: nil)
721
+ # @overload generate_upload_url(parent: nil, kms_key_name: nil)
719
722
  # Pass arguments to `generate_upload_url` via keyword arguments. Note that at
720
723
  # least one keyword argument is required. To specify no parameters, or to keep all
721
724
  # the default parameter values, pass an empty Hash as a request object (see above).
722
725
  #
723
726
  # @param parent [::String]
724
- # Required. The project and location in which the Google Cloud Storage signed URL
725
- # should be generated, specified in the format `projects/*/locations/*`.
727
+ # Required. The project and location in which the Google Cloud Storage signed
728
+ # URL should be generated, specified in the format `projects/*/locations/*`.
729
+ # @param kms_key_name [::String]
730
+ # [Preview] Resource name of a KMS crypto key (managed by the user) used to
731
+ # encrypt/decrypt function source code objects in intermediate Cloud Storage
732
+ # buckets. When you generate an upload url and upload your source code, it
733
+ # gets copied to an intermediate Cloud Storage bucket. The source code is
734
+ # then copied to a versioned directory in the sources bucket in the consumer
735
+ # project during the function deployment.
736
+ #
737
+ # It must match the pattern
738
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
739
+ #
740
+ # The Google Cloud Functions service account
741
+ # (service-\\{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
742
+ # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
743
+ # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
744
+ # Key/KeyRing/Project/Organization (least access preferred).
726
745
  #
727
746
  # @yield [response, operation] Access the result along with the RPC operation
728
747
  # @yieldparam response [::Google::Cloud::Functions::V2::GenerateUploadUrlResponse]
@@ -811,8 +830,8 @@ module Google
811
830
  # the default parameter values, pass an empty Hash as a request object (see above).
812
831
  #
813
832
  # @param name [::String]
814
- # Required. The name of function for which source code Google Cloud Storage signed
815
- # URL should be generated.
833
+ # Required. The name of function for which source code Google Cloud Storage
834
+ # signed URL should be generated.
816
835
  #
817
836
  # @yield [response, operation] Access the result along with the RPC operation
818
837
  # @yieldparam response [::Google::Cloud::Functions::V2::GenerateDownloadUrlResponse]
@@ -897,8 +916,8 @@ module Google
897
916
  # the default parameter values, pass an empty Hash as a request object (see above).
898
917
  #
899
918
  # @param parent [::String]
900
- # Required. The project and location from which the runtimes should be listed,
901
- # specified in the format `projects/*/locations/*`
919
+ # Required. The project and location from which the runtimes should be
920
+ # listed, specified in the format `projects/*/locations/*`
902
921
  # @param filter [::String]
903
922
  # The filter for Runtimes that match the filter expression,
904
923
  # following the syntax outlined in https://google.aip.dev/160.
@@ -1005,9 +1024,9 @@ module Google
1005
1024
  # * (`String`) The path to a service account key file in JSON format
1006
1025
  # * (`Hash`) A service account key as a Hash
1007
1026
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1008
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1027
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1009
1028
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1010
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1029
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1011
1030
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1012
1031
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1013
1032
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -81,6 +81,27 @@ module Google
81
81
  "projects/#{project}/locations/#{location}/connectors/#{connector}"
82
82
  end
83
83
 
84
+ ##
85
+ # Create a fully-qualified CryptoKey resource string.
86
+ #
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
90
+ #
91
+ # @param project [String]
92
+ # @param location [String]
93
+ # @param key_ring [String]
94
+ # @param crypto_key [String]
95
+ #
96
+ # @return [::String]
97
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
98
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
99
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
100
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
101
+
102
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
103
+ end
104
+
84
105
  ##
85
106
  # Create a fully-qualified Function resource string.
86
107
  #
@@ -264,14 +264,17 @@ module Google
264
264
  # the default parameter values, pass an empty Hash as a request object (see above).
265
265
  #
266
266
  # @param parent [::String]
267
- # Required. The project and location from which the function should be listed,
268
- # specified in the format `projects/*/locations/*`
269
- # If you want to list functions in all locations, use "-" in place of a
270
- # location. When listing functions in all locations, if one or more
271
- # location(s) are unreachable, the response will contain functions from all
272
- # reachable locations along with the names of any unreachable locations.
267
+ # Required. The project and location from which the function should be
268
+ # listed, specified in the format `projects/*/locations/*` If you want to
269
+ # list functions in all locations, use "-" in place of a location. When
270
+ # listing functions in all locations, if one or more location(s) are
271
+ # unreachable, the response will contain functions from all reachable
272
+ # locations along with the names of any unreachable locations.
273
273
  # @param page_size [::Integer]
274
- # Maximum number of functions to return per call.
274
+ # Maximum number of functions to return per call. The largest allowed
275
+ # page_size is 1,000, if the page_size is omitted or specified as greater
276
+ # than 1,000 then it will be replaced as 1,000. The size of the list
277
+ # response can be less than specified when used with filters.
275
278
  # @param page_token [::String]
276
279
  # The value returned by the last
277
280
  # `ListFunctionsResponse`; indicates that
@@ -347,8 +350,8 @@ module Google
347
350
  # the default parameter values, pass an empty Hash as a request object (see above).
348
351
  #
349
352
  # @param parent [::String]
350
- # Required. The project and location in which the function should be created, specified
351
- # in the format `projects/*/locations/*`
353
+ # Required. The project and location in which the function should be created,
354
+ # specified in the format `projects/*/locations/*`
352
355
  # @param function [::Google::Cloud::Functions::V2::Function, ::Hash]
353
356
  # Required. Function to be created.
354
357
  # @param function_id [::String]
@@ -567,14 +570,30 @@ module Google
567
570
  # @param options [::Gapic::CallOptions, ::Hash]
568
571
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
569
572
  #
570
- # @overload generate_upload_url(parent: nil)
573
+ # @overload generate_upload_url(parent: nil, kms_key_name: nil)
571
574
  # Pass arguments to `generate_upload_url` via keyword arguments. Note that at
572
575
  # least one keyword argument is required. To specify no parameters, or to keep all
573
576
  # the default parameter values, pass an empty Hash as a request object (see above).
574
577
  #
575
578
  # @param parent [::String]
576
- # Required. The project and location in which the Google Cloud Storage signed URL
577
- # should be generated, specified in the format `projects/*/locations/*`.
579
+ # Required. The project and location in which the Google Cloud Storage signed
580
+ # URL should be generated, specified in the format `projects/*/locations/*`.
581
+ # @param kms_key_name [::String]
582
+ # [Preview] Resource name of a KMS crypto key (managed by the user) used to
583
+ # encrypt/decrypt function source code objects in intermediate Cloud Storage
584
+ # buckets. When you generate an upload url and upload your source code, it
585
+ # gets copied to an intermediate Cloud Storage bucket. The source code is
586
+ # then copied to a versioned directory in the sources bucket in the consumer
587
+ # project during the function deployment.
588
+ #
589
+ # It must match the pattern
590
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
591
+ #
592
+ # The Google Cloud Functions service account
593
+ # (service-\\{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
594
+ # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
595
+ # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
596
+ # Key/KeyRing/Project/Organization (least access preferred).
578
597
  # @yield [result, operation] Access the result along with the TransportOperation object
579
598
  # @yieldparam result [::Google::Cloud::Functions::V2::GenerateUploadUrlResponse]
580
599
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -640,8 +659,8 @@ module Google
640
659
  # the default parameter values, pass an empty Hash as a request object (see above).
641
660
  #
642
661
  # @param name [::String]
643
- # Required. The name of function for which source code Google Cloud Storage signed
644
- # URL should be generated.
662
+ # Required. The name of function for which source code Google Cloud Storage
663
+ # signed URL should be generated.
645
664
  # @yield [result, operation] Access the result along with the TransportOperation object
646
665
  # @yieldparam result [::Google::Cloud::Functions::V2::GenerateDownloadUrlResponse]
647
666
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -703,8 +722,8 @@ module Google
703
722
  # the default parameter values, pass an empty Hash as a request object (see above).
704
723
  #
705
724
  # @param parent [::String]
706
- # Required. The project and location from which the runtimes should be listed,
707
- # specified in the format `projects/*/locations/*`
725
+ # Required. The project and location from which the runtimes should be
726
+ # listed, specified in the format `projects/*/locations/*`
708
727
  # @param filter [::String]
709
728
  # The filter for Runtimes that match the filter expression,
710
729
  # following the syntax outlined in https://google.aip.dev/160.
@@ -788,9 +807,9 @@ module Google
788
807
  # * (`String`) The path to a service account key file in JSON format
789
808
  # * (`Hash`) A service account key as a Hash
790
809
  # * (`Google::Auth::Credentials`) A googleauth credentials object
791
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
810
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
792
811
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
793
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
812
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
794
813
  # * (`nil`) indicating no credentials
795
814
  # @return [::Object]
796
815
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/functions/v2/functions.proto
3
4
 
@@ -9,245 +10,38 @@ require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
10
11
  require 'google/longrunning/operations_pb'
11
12
  require 'google/protobuf/any_pb'
13
+ require 'google/protobuf/empty_pb'
12
14
  require 'google/protobuf/field_mask_pb'
13
15
  require 'google/protobuf/timestamp_pb'
14
16
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/functions/v2/functions.proto", :syntax => :proto3) do
17
- add_message "google.cloud.functions.v2.Function" do
18
- optional :name, :string, 1
19
- optional :environment, :enum, 10, "google.cloud.functions.v2.Environment"
20
- optional :description, :string, 2
21
- optional :build_config, :message, 3, "google.cloud.functions.v2.BuildConfig"
22
- optional :service_config, :message, 4, "google.cloud.functions.v2.ServiceConfig"
23
- optional :event_trigger, :message, 5, "google.cloud.functions.v2.EventTrigger"
24
- optional :state, :enum, 6, "google.cloud.functions.v2.Function.State"
25
- optional :update_time, :message, 7, "google.protobuf.Timestamp"
26
- map :labels, :string, :string, 8
27
- repeated :state_messages, :message, 9, "google.cloud.functions.v2.StateMessage"
28
- end
29
- add_enum "google.cloud.functions.v2.Function.State" do
30
- value :STATE_UNSPECIFIED, 0
31
- value :ACTIVE, 1
32
- value :FAILED, 2
33
- value :DEPLOYING, 3
34
- value :DELETING, 4
35
- value :UNKNOWN, 5
36
- end
37
- add_message "google.cloud.functions.v2.StateMessage" do
38
- optional :severity, :enum, 1, "google.cloud.functions.v2.StateMessage.Severity"
39
- optional :type, :string, 2
40
- optional :message, :string, 3
41
- end
42
- add_enum "google.cloud.functions.v2.StateMessage.Severity" do
43
- value :SEVERITY_UNSPECIFIED, 0
44
- value :ERROR, 1
45
- value :WARNING, 2
46
- value :INFO, 3
47
- end
48
- add_message "google.cloud.functions.v2.StorageSource" do
49
- optional :bucket, :string, 1
50
- optional :object, :string, 2
51
- optional :generation, :int64, 3
52
- end
53
- add_message "google.cloud.functions.v2.RepoSource" do
54
- optional :project_id, :string, 1
55
- optional :repo_name, :string, 2
56
- optional :dir, :string, 6
57
- optional :invert_regex, :bool, 7
58
- oneof :revision do
59
- optional :branch_name, :string, 3
60
- optional :tag_name, :string, 4
61
- optional :commit_sha, :string, 5
62
- end
63
- end
64
- add_message "google.cloud.functions.v2.Source" do
65
- oneof :source do
66
- optional :storage_source, :message, 1, "google.cloud.functions.v2.StorageSource"
67
- optional :repo_source, :message, 2, "google.cloud.functions.v2.RepoSource"
68
- end
69
- end
70
- add_message "google.cloud.functions.v2.SourceProvenance" do
71
- optional :resolved_storage_source, :message, 1, "google.cloud.functions.v2.StorageSource"
72
- optional :resolved_repo_source, :message, 2, "google.cloud.functions.v2.RepoSource"
73
- end
74
- add_message "google.cloud.functions.v2.BuildConfig" do
75
- optional :build, :string, 1
76
- optional :runtime, :string, 2
77
- optional :entry_point, :string, 3
78
- optional :source, :message, 4, "google.cloud.functions.v2.Source"
79
- optional :source_provenance, :message, 8, "google.cloud.functions.v2.SourceProvenance"
80
- optional :worker_pool, :string, 5
81
- map :environment_variables, :string, :string, 6
82
- optional :docker_repository, :string, 7
83
- end
84
- add_message "google.cloud.functions.v2.ServiceConfig" do
85
- optional :service, :string, 1
86
- optional :timeout_seconds, :int32, 2
87
- optional :available_memory, :string, 13
88
- map :environment_variables, :string, :string, 4
89
- optional :max_instance_count, :int32, 5
90
- optional :min_instance_count, :int32, 12
91
- optional :vpc_connector, :string, 6
92
- optional :vpc_connector_egress_settings, :enum, 7, "google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings"
93
- optional :ingress_settings, :enum, 8, "google.cloud.functions.v2.ServiceConfig.IngressSettings"
94
- optional :uri, :string, 9
95
- optional :service_account_email, :string, 10
96
- optional :all_traffic_on_latest_revision, :bool, 16
97
- repeated :secret_environment_variables, :message, 17, "google.cloud.functions.v2.SecretEnvVar"
98
- repeated :secret_volumes, :message, 19, "google.cloud.functions.v2.SecretVolume"
99
- optional :revision, :string, 18
100
- end
101
- add_enum "google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings" do
102
- value :VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, 0
103
- value :PRIVATE_RANGES_ONLY, 1
104
- value :ALL_TRAFFIC, 2
105
- end
106
- add_enum "google.cloud.functions.v2.ServiceConfig.IngressSettings" do
107
- value :INGRESS_SETTINGS_UNSPECIFIED, 0
108
- value :ALLOW_ALL, 1
109
- value :ALLOW_INTERNAL_ONLY, 2
110
- value :ALLOW_INTERNAL_AND_GCLB, 3
111
- end
112
- add_message "google.cloud.functions.v2.SecretEnvVar" do
113
- optional :key, :string, 1
114
- optional :project_id, :string, 2
115
- optional :secret, :string, 3
116
- optional :version, :string, 4
117
- end
118
- add_message "google.cloud.functions.v2.SecretVolume" do
119
- optional :mount_path, :string, 1
120
- optional :project_id, :string, 2
121
- optional :secret, :string, 3
122
- repeated :versions, :message, 4, "google.cloud.functions.v2.SecretVolume.SecretVersion"
123
- end
124
- add_message "google.cloud.functions.v2.SecretVolume.SecretVersion" do
125
- optional :version, :string, 1
126
- optional :path, :string, 2
127
- end
128
- add_message "google.cloud.functions.v2.EventTrigger" do
129
- optional :trigger, :string, 1
130
- optional :trigger_region, :string, 2
131
- optional :event_type, :string, 3
132
- repeated :event_filters, :message, 4, "google.cloud.functions.v2.EventFilter"
133
- optional :pubsub_topic, :string, 5
134
- optional :service_account_email, :string, 6
135
- optional :retry_policy, :enum, 7, "google.cloud.functions.v2.EventTrigger.RetryPolicy"
136
- optional :channel, :string, 8
137
- end
138
- add_enum "google.cloud.functions.v2.EventTrigger.RetryPolicy" do
139
- value :RETRY_POLICY_UNSPECIFIED, 0
140
- value :RETRY_POLICY_DO_NOT_RETRY, 1
141
- value :RETRY_POLICY_RETRY, 2
142
- end
143
- add_message "google.cloud.functions.v2.EventFilter" do
144
- optional :attribute, :string, 1
145
- optional :value, :string, 2
146
- optional :operator, :string, 3
147
- end
148
- add_message "google.cloud.functions.v2.GetFunctionRequest" do
149
- optional :name, :string, 1
150
- end
151
- add_message "google.cloud.functions.v2.ListFunctionsRequest" do
152
- optional :parent, :string, 1
153
- optional :page_size, :int32, 2
154
- optional :page_token, :string, 3
155
- optional :filter, :string, 4
156
- optional :order_by, :string, 5
157
- end
158
- add_message "google.cloud.functions.v2.ListFunctionsResponse" do
159
- repeated :functions, :message, 1, "google.cloud.functions.v2.Function"
160
- optional :next_page_token, :string, 2
161
- repeated :unreachable, :string, 3
162
- end
163
- add_message "google.cloud.functions.v2.CreateFunctionRequest" do
164
- optional :parent, :string, 1
165
- optional :function, :message, 2, "google.cloud.functions.v2.Function"
166
- optional :function_id, :string, 3
167
- end
168
- add_message "google.cloud.functions.v2.UpdateFunctionRequest" do
169
- optional :function, :message, 1, "google.cloud.functions.v2.Function"
170
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
171
- end
172
- add_message "google.cloud.functions.v2.DeleteFunctionRequest" do
173
- optional :name, :string, 1
174
- end
175
- add_message "google.cloud.functions.v2.GenerateUploadUrlRequest" do
176
- optional :parent, :string, 1
177
- end
178
- add_message "google.cloud.functions.v2.GenerateUploadUrlResponse" do
179
- optional :upload_url, :string, 1
180
- optional :storage_source, :message, 2, "google.cloud.functions.v2.StorageSource"
181
- end
182
- add_message "google.cloud.functions.v2.GenerateDownloadUrlRequest" do
183
- optional :name, :string, 1
184
- end
185
- add_message "google.cloud.functions.v2.GenerateDownloadUrlResponse" do
186
- optional :download_url, :string, 1
187
- end
188
- add_message "google.cloud.functions.v2.ListRuntimesRequest" do
189
- optional :parent, :string, 1
190
- optional :filter, :string, 2
191
- end
192
- add_message "google.cloud.functions.v2.ListRuntimesResponse" do
193
- repeated :runtimes, :message, 1, "google.cloud.functions.v2.ListRuntimesResponse.Runtime"
194
- end
195
- add_message "google.cloud.functions.v2.ListRuntimesResponse.Runtime" do
196
- optional :name, :string, 1
197
- optional :display_name, :string, 5
198
- optional :stage, :enum, 2, "google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage"
199
- repeated :warnings, :string, 3
200
- optional :environment, :enum, 4, "google.cloud.functions.v2.Environment"
201
- end
202
- add_enum "google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage" do
203
- value :RUNTIME_STAGE_UNSPECIFIED, 0
204
- value :DEVELOPMENT, 1
205
- value :ALPHA, 2
206
- value :BETA, 3
207
- value :GA, 4
208
- value :DEPRECATED, 5
209
- value :DECOMMISSIONED, 6
210
- end
211
- add_message "google.cloud.functions.v2.OperationMetadata" do
212
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
213
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
214
- optional :target, :string, 3
215
- optional :verb, :string, 4
216
- optional :status_detail, :string, 5
217
- optional :cancel_requested, :bool, 6
218
- optional :api_version, :string, 7
219
- optional :request_resource, :message, 8, "google.protobuf.Any"
220
- repeated :stages, :message, 9, "google.cloud.functions.v2.Stage"
221
- end
222
- add_message "google.cloud.functions.v2.Stage" do
223
- optional :name, :enum, 1, "google.cloud.functions.v2.Stage.Name"
224
- optional :message, :string, 2
225
- optional :state, :enum, 3, "google.cloud.functions.v2.Stage.State"
226
- optional :resource, :string, 4
227
- optional :resource_uri, :string, 5
228
- repeated :state_messages, :message, 6, "google.cloud.functions.v2.StateMessage"
229
- end
230
- add_enum "google.cloud.functions.v2.Stage.Name" do
231
- value :NAME_UNSPECIFIED, 0
232
- value :ARTIFACT_REGISTRY, 1
233
- value :BUILD, 2
234
- value :SERVICE, 3
235
- value :TRIGGER, 4
236
- value :SERVICE_ROLLBACK, 5
237
- value :TRIGGER_ROLLBACK, 6
238
- end
239
- add_enum "google.cloud.functions.v2.Stage.State" do
240
- value :STATE_UNSPECIFIED, 0
241
- value :NOT_STARTED, 1
242
- value :IN_PROGRESS, 2
243
- value :COMPLETE, 3
244
- end
245
- add_enum "google.cloud.functions.v2.Environment" do
246
- value :ENVIRONMENT_UNSPECIFIED, 0
247
- value :GEN_1, 1
248
- value :GEN_2, 2
17
+
18
+ descriptor_data = "\n)google/cloud/functions/v2/functions.proto\x12\x19google.cloud.functions.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x87\x07\n\x08\x46unction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\x0c\x62uild_config\x18\x03 \x01(\x0b\x32&.google.cloud.functions.v2.BuildConfig\x12@\n\x0eservice_config\x18\x04 \x01(\x0b\x32(.google.cloud.functions.v2.ServiceConfig\x12>\n\revent_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v2.EventTrigger\x12=\n\x05state\x18\x06 \x01(\x0e\x32).google.cloud.functions.v2.Function.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.google.cloud.functions.v2.Function.LabelsEntry\x12\x44\n\x0estate_messages\x18\t \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessageB\x03\xe0\x41\x03\x12;\n\x0b\x65nvironment\x18\n \x01(\x0e\x32&.google.cloud.functions.v2.Environment\x12\x10\n\x03url\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05:~\xea\x41{\n&cloudfunctions.googleapis.com/Function\x12<projects/{project}/locations/{location}/functions/{function}*\tfunctions2\x08\x66unction\"\xb9\x01\n\x0cStateMessage\x12\x42\n\x08severity\x18\x01 \x01(\x0e\x32\x30.google.cloud.functions.v2.StateMessage.Severity\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"C\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03\"\xa3\x01\n\nRepoSource\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x0b\n\x03\x64ir\x18\x06 \x01(\t\x12\x14\n\x0cinvert_regex\x18\x07 \x01(\x08\x42\n\n\x08revision\"\x94\x01\n\x06Source\x12\x42\n\x0estorage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSourceH\x00\x12<\n\x0brepo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSourceH\x00\x42\x08\n\x06source\"\xa2\x01\n\x10SourceProvenance\x12I\n\x17resolved_storage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\x12\x43\n\x14resolved_repo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSource\"\xc7\x05\n\x0b\x42uildConfig\x12\x36\n\x05\x62uild\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x0f\n\x07runtime\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x12\x31\n\x06source\x18\x04 \x01(\x0b\x32!.google.cloud.functions.v2.Source\x12K\n\x11source_provenance\x18\x08 \x01(\x0b\x32+.google.cloud.functions.v2.SourceProvenanceB\x03\xe0\x41\x03\x12>\n\x0bworker_pool\x18\x05 \x01(\tB)\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12_\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32@.google.cloud.functions.v2.BuildConfig.EnvironmentVariablesEntry\x12N\n\x0f\x64ocker_registry\x18\n \x01(\x0e\x32\x35.google.cloud.functions.v2.BuildConfig.DockerRegistry\x12J\n\x11\x64ocker_repository\x18\x07 \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\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\"\xaa\n\n\rServiceConfig\x12\x33\n\x07service\x18\x01 \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x18\n\x10\x61vailable_memory\x18\r \x01(\t\x12\x15\n\ravailable_cpu\x18\x16 \x01(\t\x12\x61\n\x15\x65nvironment_variables\x18\x04 \x03(\x0b\x32\x42.google.cloud.functions.v2.ServiceConfig.EnvironmentVariablesEntry\x12\x1a\n\x12max_instance_count\x18\x05 \x01(\x05\x12\x1a\n\x12min_instance_count\x18\x0c \x01(\x05\x12>\n\rvpc_connector\x18\x06 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12j\n\x1dvpc_connector_egress_settings\x18\x07 \x01(\x0e\x32\x43.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x08 \x01(\x0e\x32\x38.google.cloud.functions.v2.ServiceConfig.IngressSettings\x12\x10\n\x03uri\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x15service_account_email\x18\n \x01(\t\x12&\n\x1e\x61ll_traffic_on_latest_revision\x18\x10 \x01(\x08\x12M\n\x1csecret_environment_variables\x18\x11 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x13 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretVolume\x12\x15\n\x08revision\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12(\n max_instance_request_concurrency\x18\x14 \x01(\x05\x12N\n\x0esecurity_level\x18\x15 \x01(\x0e\x32\x36.google.cloud.functions.v2.ServiceConfig.SecurityLevel\x1a;\n\x19\x45nvironmentVariablesEntry\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\"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\"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.v2.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x85\x04\n\x0c\x45ventTrigger\x12\x38\n\x07trigger\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Trigger\x12\x16\n\x0etrigger_region\x18\x02 \x01(\t\x12\x17\n\nevent_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12=\n\revent_filters\x18\x04 \x03(\x0b\x32&.google.cloud.functions.v2.EventFilter\x12\x39\n\x0cpubsub_topic\x18\x05 \x01(\tB#\xe0\x41\x01\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\"\n\x15service_account_email\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12N\n\x0cretry_policy\x18\x07 \x01(\x0e\x32\x33.google.cloud.functions.v2.EventTrigger.RetryPolicyB\x03\xe0\x41\x01\x12\x38\n\x07\x63hannel\x18\x08 \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Channel\"b\n\x0bRetryPolicy\x12\x1c\n\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\x1d\n\x19RETRY_POLICY_DO_NOT_RETRY\x10\x01\x12\x16\n\x12RETRY_POLICY_RETRY\x10\x02\"P\n\x0b\x45ventFilter\x12\x16\n\tattribute\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08operator\x18\x03 \x01(\tB\x03\xe0\x41\x01\"R\n\x12GetFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\x9f\x01\n\x14ListFunctionsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&cloudfunctions.googleapis.com/Function\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"}\n\x15ListFunctionsResponse\x12\x36\n\tfunctions\x18\x01 \x03(\x0b\x32#.google.cloud.functions.v2.Function\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa3\x01\n\x15\x43reateFunctionRequest\x12\x39\n\x06parent\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.v2.FunctionB\x03\xe0\x41\x02\x12\x13\n\x0b\x66unction_id\x18\x03 \x01(\t\"\x84\x01\n\x15UpdateFunctionRequest\x12:\n\x08\x66unction\x18\x01 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"U\n\x15\x44\x65leteFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\x93\x01\n\x18GenerateUploadUrlRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"q\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\x12@\n\x0estorage_source\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\"Z\n\x1aGenerateDownloadUrlRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t\"`\n\x13ListRuntimesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"\xae\x03\n\x14ListRuntimesResponse\x12I\n\x08runtimes\x18\x01 \x03(\x0b\x32\x37.google.cloud.functions.v2.ListRuntimesResponse.Runtime\x1a\xc9\x01\n\x07Runtime\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage\x12\x10\n\x08warnings\x18\x03 \x03(\t\x12;\n\x0b\x65nvironment\x18\x04 \x01(\x0e\x32&.google.cloud.functions.v2.Environment\"\x7f\n\x0cRuntimeStage\x12\x1d\n\x19RUNTIME_STAGE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x12\x08\n\x04\x42\x45TA\x10\x03\x12\x06\n\x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05\x12\x12\n\x0e\x44\x45\x43OMMISSIONED\x10\x06\"\xb8\x02\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\x12.\n\x10request_resource\x18\x08 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x30\n\x06stages\x18\t \x03(\x0b\x32 .google.cloud.functions.v2.Stage\"P\n\x10LocationMetadata\x12<\n\x0c\x65nvironments\x18\x01 \x03(\x0e\x32&.google.cloud.functions.v2.Environment\"\xc4\x03\n\x05Stage\x12\x33\n\x04name\x18\x01 \x01(\x0e\x32%.google.cloud.functions.v2.Stage.Name\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.cloud.functions.v2.Stage.State\x12\x10\n\x08resource\x18\x04 \x01(\t\x12\x14\n\x0cresource_uri\x18\x05 \x01(\t\x12?\n\x0estate_messages\x18\x06 \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessage\"\x84\x01\n\x04Name\x12\x14\n\x10NAME_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\x0b\n\x07SERVICE\x10\x03\x12\x0b\n\x07TRIGGER\x10\x04\x12\x14\n\x10SERVICE_ROLLBACK\x10\x05\x12\x14\n\x10TRIGGER_ROLLBACK\x10\x06\"N\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03*@\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\t\n\x05GEN_1\x10\x01\x12\t\n\x05GEN_2\x10\x02\x32\xaa\x0e\n\x0f\x46unctionService\x12\x9f\x01\n\x0bGetFunction\x12-.google.cloud.functions.v2.GetFunctionRequest\x1a#.google.cloud.functions.v2.Function\"<\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\x12\xb2\x01\n\rListFunctions\x12/.google.cloud.functions.v2.ListFunctionsRequest\x1a\x30.google.cloud.functions.v2.ListFunctionsResponse\">\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/functions\xda\x41\x06parent\x12\x95\x02\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v2.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/functions:\x08\x66unction\xda\x41\x1bparent,function,function_id\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\x12\x97\x02\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v2.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\xda\x41\x14\x66unction,update_mask\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\x12\xe7\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v2.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.functions.v2.OperationMetadata\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v2.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v2.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v2.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v2.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\xae\x01\n\x0cListRuntimes\x12..google.cloud.functions.v2.ListRuntimesRequest\x1a/.google.cloud.functions.v2.ListRuntimesResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/runtimes\xda\x41\x06parent\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xee\x07\n\x1d\x63om.google.cloud.functions.v2B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv2/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41Y\n\x1f\x63loudbuild.googleapis.com/Build\x12\x36projects/{project}/locations/{location}/builds/{build}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}\xea\x41X\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Trigger\x12:projects/{project}/locations/{location}/triggers/{trigger}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
249
41
  end
250
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
251
45
  end
252
46
 
253
47
  module Google
@@ -263,9 +57,11 @@ module Google
263
57
  Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Source").msgclass
264
58
  SourceProvenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.SourceProvenance").msgclass
265
59
  BuildConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.BuildConfig").msgclass
60
+ BuildConfig::DockerRegistry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.BuildConfig.DockerRegistry").enummodule
266
61
  ServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ServiceConfig").msgclass
267
62
  ServiceConfig::VpcConnectorEgressSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings").enummodule
268
63
  ServiceConfig::IngressSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ServiceConfig.IngressSettings").enummodule
64
+ ServiceConfig::SecurityLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ServiceConfig.SecurityLevel").enummodule
269
65
  SecretEnvVar = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.SecretEnvVar").msgclass
270
66
  SecretVolume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.SecretVolume").msgclass
271
67
  SecretVolume::SecretVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.SecretVolume.SecretVersion").msgclass
@@ -287,6 +83,7 @@ module Google
287
83
  ListRuntimesResponse::Runtime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse.Runtime").msgclass
288
84
  ListRuntimesResponse::RuntimeStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage").enummodule
289
85
  OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.OperationMetadata").msgclass
86
+ LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.LocationMetadata").msgclass
290
87
  Stage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage").msgclass
291
88
  Stage::Name = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage.Name").enummodule
292
89
  Stage::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage.State").enummodule
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V2
24
- VERSION = "0.2.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -27,9 +27,6 @@ module Google
27
27
  # @return [::String]
28
28
  # A user-defined name of the function. Function names must be unique
29
29
  # globally and match pattern `projects/*/locations/*/functions/*`
30
- # @!attribute [rw] environment
31
- # @return [::Google::Cloud::Functions::V2::Environment]
32
- # Describe whether the function is gen1 or gen2.
33
30
  # @!attribute [rw] description
34
31
  # @return [::String]
35
32
  # User-provided description of a function.
@@ -57,6 +54,19 @@ module Google
57
54
  # @!attribute [r] state_messages
58
55
  # @return [::Array<::Google::Cloud::Functions::V2::StateMessage>]
59
56
  # Output only. State Messages for this Cloud Function.
57
+ # @!attribute [rw] environment
58
+ # @return [::Google::Cloud::Functions::V2::Environment]
59
+ # Describe whether the function is 1st Gen or 2nd Gen.
60
+ # @!attribute [r] url
61
+ # @return [::String]
62
+ # Output only. The deployed url for the function.
63
+ # @!attribute [rw] kms_key_name
64
+ # @return [::String]
65
+ # [Preview] Resource name of a KMS crypto key (managed by the user) used to
66
+ # encrypt/decrypt function resources.
67
+ #
68
+ # It must match the pattern
69
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
60
70
  class Function
61
71
  include ::Google::Protobuf::MessageExts
62
72
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -215,8 +225,8 @@ module Google
215
225
  # given source.
216
226
  # @!attribute [r] build
217
227
  # @return [::String]
218
- # Output only. The Cloud Build name of the latest successful deployment of the
219
- # function.
228
+ # Output only. The Cloud Build name of the latest successful deployment of
229
+ # the function.
220
230
  # @!attribute [rw] runtime
221
231
  # @return [::String]
222
232
  # The runtime in which to run the function. Required when deploying a new
@@ -255,10 +265,20 @@ module Google
255
265
  # @!attribute [rw] environment_variables
256
266
  # @return [::Google::Protobuf::Map{::String => ::String}]
257
267
  # User-provided build-time environment variables for the function
268
+ # @!attribute [rw] docker_registry
269
+ # @return [::Google::Cloud::Functions::V2::BuildConfig::DockerRegistry]
270
+ # Docker Registry to use for this deployment. This configuration is only
271
+ # applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
272
+ # Registry.
273
+ #
274
+ # If `docker_repository` field is specified, this field will be automatically
275
+ # set as `ARTIFACT_REGISTRY`.
276
+ # If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
277
+ # This field may be overridden by the backend for eligible deployments.
258
278
  # @!attribute [rw] docker_repository
259
279
  # @return [::String]
260
- # Optional. User managed repository created in Artifact Registry optionally with a
261
- # customer managed encryption key. This is the repository to which the
280
+ # User managed repository created in Artifact Registry optionally
281
+ # with a customer managed encryption key. This is the repository to which the
262
282
  # function docker image will be pushed after it is built by Cloud Build.
263
283
  # If unspecified, GCF will create and use a repository named 'gcf-artifacts'
264
284
  # for every deployed region.
@@ -281,6 +301,23 @@ module Google
281
301
  include ::Google::Protobuf::MessageExts
282
302
  extend ::Google::Protobuf::MessageExts::ClassMethods
283
303
  end
304
+
305
+ # Docker Registry to use for storing function Docker images.
306
+ module DockerRegistry
307
+ # Unspecified.
308
+ DOCKER_REGISTRY_UNSPECIFIED = 0
309
+
310
+ # Docker images will be stored in multi-regional Container Registry
311
+ # repositories named `gcf`.
312
+ CONTAINER_REGISTRY = 1
313
+
314
+ # Docker images will be stored in regional Artifact Registry repositories.
315
+ # By default, GCF will create and use repositories named `gcf-artifacts`
316
+ # in every region in which a function is deployed. But the repository to
317
+ # use can also be specified by the user using the `docker_repository`
318
+ # field.
319
+ ARTIFACT_REGISTRY = 2
320
+ end
284
321
  end
285
322
 
286
323
  # Describes the Service being deployed.
@@ -303,6 +340,13 @@ module Google
303
340
  # See
304
341
  # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
305
342
  # a full description.
343
+ # @!attribute [rw] available_cpu
344
+ # @return [::String]
345
+ # [Preview] The number of CPUs used in a single container instance.
346
+ # Default value is calculated from available memory.
347
+ # Supports the same values as Cloud Run, see
348
+ # https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
349
+ # Example: "1" indicates 1 vCPU
306
350
  # @!attribute [rw] environment_variables
307
351
  # @return [::Google::Protobuf::Map{::String => ::String}]
308
352
  # Environment variables that shall be available during function execution.
@@ -366,6 +410,16 @@ module Google
366
410
  # @!attribute [r] revision
367
411
  # @return [::String]
368
412
  # Output only. The name of service revision.
413
+ # @!attribute [rw] max_instance_request_concurrency
414
+ # @return [::Integer]
415
+ # [Preview] Sets the maximum number of concurrent requests that each instance
416
+ # can receive. Defaults to 1.
417
+ # @!attribute [rw] security_level
418
+ # @return [::Google::Cloud::Functions::V2::ServiceConfig::SecurityLevel]
419
+ # Security level configure whether the function only accepts https.
420
+ # This configuration is only applicable to 1st Gen functions with Http
421
+ # trigger. By default https is optional for 1st Gen functions; 2nd Gen
422
+ # functions are https ONLY.
369
423
  class ServiceConfig
370
424
  include ::Google::Protobuf::MessageExts
371
425
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -413,6 +467,27 @@ module Google
413
467
  # Allow HTTP traffic from private VPC sources and through GCLB.
414
468
  ALLOW_INTERNAL_AND_GCLB = 3
415
469
  end
470
+
471
+ # Available security level settings.
472
+ #
473
+ # This enforces security protocol on function URL.
474
+ #
475
+ # Security level is only configurable for 1st Gen functions, If unspecified,
476
+ # SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.
477
+ module SecurityLevel
478
+ # Unspecified.
479
+ SECURITY_LEVEL_UNSPECIFIED = 0
480
+
481
+ # Requests for a URL that match this handler that do not use HTTPS are
482
+ # automatically redirected to the HTTPS URL with the same path. Query
483
+ # parameters are reserved for the redirect.
484
+ SECURE_ALWAYS = 1
485
+
486
+ # Both HTTP and HTTPS requests with URLs that match the handler succeed
487
+ # without redirects. The application can examine the request to determine
488
+ # which protocol was used and respond accordingly.
489
+ SECURE_OPTIONAL = 2
490
+ end
416
491
  end
417
492
 
418
493
  # Configuration for a secret environment variable. It has the information
@@ -489,8 +564,8 @@ module Google
489
564
  # service.
490
565
  # @!attribute [r] trigger
491
566
  # @return [::String]
492
- # Output only. The resource name of the Eventarc trigger. The format of this field is
493
- # `projects/{project}/locations/{region}/triggers/{trigger}`.
567
+ # Output only. The resource name of the Eventarc trigger. The format of this
568
+ # field is `projects/{project}/locations/{region}/triggers/{trigger}`.
494
569
  # @!attribute [rw] trigger_region
495
570
  # @return [::String]
496
571
  # The region that the trigger will be in. The trigger will only receive
@@ -516,14 +591,15 @@ module Google
516
591
  # will not be deleted at function deletion.
517
592
  # @!attribute [rw] service_account_email
518
593
  # @return [::String]
519
- # Optional. The email of the trigger's service account. The service account must have
520
- # permission to invoke Cloud Run services, the permission is
594
+ # Optional. The email of the trigger's service account. The service account
595
+ # must have permission to invoke Cloud Run services, the permission is
521
596
  # `run.routes.invoke`.
522
597
  # If empty, defaults to the Compute Engine default service account:
523
598
  # `{project_number}-compute@developer.gserviceaccount.com`.
524
599
  # @!attribute [rw] retry_policy
525
600
  # @return [::Google::Cloud::Functions::V2::EventTrigger::RetryPolicy]
526
- # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
601
+ # Optional. If unset, then defaults to ignoring failures (i.e. not retrying
602
+ # them).
527
603
  # @!attribute [rw] channel
528
604
  # @return [::String]
529
605
  # Optional. The name of the channel associated with the trigger in
@@ -578,15 +654,18 @@ module Google
578
654
  # Request for the `ListFunctions` method.
579
655
  # @!attribute [rw] parent
580
656
  # @return [::String]
581
- # Required. The project and location from which the function should be listed,
582
- # specified in the format `projects/*/locations/*`
583
- # If you want to list functions in all locations, use "-" in place of a
584
- # location. When listing functions in all locations, if one or more
585
- # location(s) are unreachable, the response will contain functions from all
586
- # reachable locations along with the names of any unreachable locations.
657
+ # Required. The project and location from which the function should be
658
+ # listed, specified in the format `projects/*/locations/*` If you want to
659
+ # list functions in all locations, use "-" in place of a location. When
660
+ # listing functions in all locations, if one or more location(s) are
661
+ # unreachable, the response will contain functions from all reachable
662
+ # locations along with the names of any unreachable locations.
587
663
  # @!attribute [rw] page_size
588
664
  # @return [::Integer]
589
- # Maximum number of functions to return per call.
665
+ # Maximum number of functions to return per call. The largest allowed
666
+ # page_size is 1,000, if the page_size is omitted or specified as greater
667
+ # than 1,000 then it will be replaced as 1,000. The size of the list
668
+ # response can be less than specified when used with filters.
590
669
  # @!attribute [rw] page_token
591
670
  # @return [::String]
592
671
  # The value returned by the last
@@ -627,8 +706,8 @@ module Google
627
706
  # Request for the `CreateFunction` method.
628
707
  # @!attribute [rw] parent
629
708
  # @return [::String]
630
- # Required. The project and location in which the function should be created, specified
631
- # in the format `projects/*/locations/*`
709
+ # Required. The project and location in which the function should be created,
710
+ # specified in the format `projects/*/locations/*`
632
711
  # @!attribute [rw] function
633
712
  # @return [::Google::Cloud::Functions::V2::Function]
634
713
  # Required. Function to be created.
@@ -670,8 +749,25 @@ module Google
670
749
  # Request of `GenerateSourceUploadUrl` method.
671
750
  # @!attribute [rw] parent
672
751
  # @return [::String]
673
- # Required. The project and location in which the Google Cloud Storage signed URL
674
- # should be generated, specified in the format `projects/*/locations/*`.
752
+ # Required. The project and location in which the Google Cloud Storage signed
753
+ # URL should be generated, specified in the format `projects/*/locations/*`.
754
+ # @!attribute [rw] kms_key_name
755
+ # @return [::String]
756
+ # [Preview] Resource name of a KMS crypto key (managed by the user) used to
757
+ # encrypt/decrypt function source code objects in intermediate Cloud Storage
758
+ # buckets. When you generate an upload url and upload your source code, it
759
+ # gets copied to an intermediate Cloud Storage bucket. The source code is
760
+ # then copied to a versioned directory in the sources bucket in the consumer
761
+ # project during the function deployment.
762
+ #
763
+ # It must match the pattern
764
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
765
+ #
766
+ # The Google Cloud Functions service account
767
+ # (service-\\{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
768
+ # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
769
+ # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
770
+ # Key/KeyRing/Project/Organization (least access preferred).
675
771
  class GenerateUploadUrlRequest
676
772
  include ::Google::Protobuf::MessageExts
677
773
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -701,8 +797,8 @@ module Google
701
797
  # Request of `GenerateDownloadUrl` method.
702
798
  # @!attribute [rw] name
703
799
  # @return [::String]
704
- # Required. The name of function for which source code Google Cloud Storage signed
705
- # URL should be generated.
800
+ # Required. The name of function for which source code Google Cloud Storage
801
+ # signed URL should be generated.
706
802
  class GenerateDownloadUrlRequest
707
803
  include ::Google::Protobuf::MessageExts
708
804
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -721,8 +817,8 @@ module Google
721
817
  # Request for the `ListRuntimes` method.
722
818
  # @!attribute [rw] parent
723
819
  # @return [::String]
724
- # Required. The project and location from which the runtimes should be listed,
725
- # specified in the format `projects/*/locations/*`
820
+ # Required. The project and location from which the runtimes should be
821
+ # listed, specified in the format `projects/*/locations/*`
726
822
  # @!attribute [rw] filter
727
823
  # @return [::String]
728
824
  # The filter for Runtimes that match the filter expression,
@@ -807,8 +903,9 @@ module Google
807
903
  # @return [::Boolean]
808
904
  # Identifies whether the user has requested cancellation
809
905
  # of the operation. Operations that have successfully been cancelled
810
- # have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
811
- # corresponding to `Code.CANCELLED`.
906
+ # have [Operation.error][] value with a
907
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
908
+ # `Code.CANCELLED`.
812
909
  # @!attribute [rw] api_version
813
910
  # @return [::String]
814
911
  # API version used to start the operation.
@@ -823,6 +920,15 @@ module Google
823
920
  extend ::Google::Protobuf::MessageExts::ClassMethods
824
921
  end
825
922
 
923
+ # Extra GCF specific location information.
924
+ # @!attribute [rw] environments
925
+ # @return [::Array<::Google::Cloud::Functions::V2::Environment>]
926
+ # The Cloud Function environments this location supports.
927
+ class LocationMetadata
928
+ include ::Google::Protobuf::MessageExts
929
+ extend ::Google::Protobuf::MessageExts::ClassMethods
930
+ end
931
+
826
932
  # Each Stage of the deployment process
827
933
  # @!attribute [rw] name
828
934
  # @return [::Google::Cloud::Functions::V2::Stage::Name]
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-functions-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.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: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a