google-cloud-functions-v1 0.9.0 → 0.11.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: 97f52801b9579f6006085e6e0a3d7bb71894afe24ad60b7871906163023d0dc6
4
- data.tar.gz: 990ef0eb79f444d14dc939ed2c22178551aa25178f95dccc8bdfc34ac95a3b5c
3
+ metadata.gz: 105f0d1fa325f7e0004e7a89174e5db940bccf3b38848bb10ee8724194319fcd
4
+ data.tar.gz: a4de28d40260c63a5972f510872a5b31a3e96e199405d02da5677fe94dbebd9d
5
5
  SHA512:
6
- metadata.gz: 21f515d95665e92e8d72d636a7169e55b7fc349144da9704e2f1743bf13ceb9b248daeb28c4764b7f5fcb01e69dfc5e367736e050eb3fc303d5682ae966cdc49
7
- data.tar.gz: '03163831ba992f741d9d6eb25983e7faee2284ae048ff50ece0c2fed3470c55e317d1c2e4d47e03b52d2ff07d7553cb9a70544dcfaf5ae415384b1e1b48f9bf6'
6
+ metadata.gz: 70479d996f0072dcb5d701e934290a48e800832c4f3519cd1aab52526752e6bfc30ba2a376193c5a469228cac841d152c3dd4ac8900a7b0ac092b1b7e36fe2c8
7
+ data.tar.gz: 6f5ceb3dd730e8533fbd4fed2a76cd2f7963a008fa660aeeec9105961a4d0dbc5ca694e7dbfc745177db0b35f4f03207af8956d9579dbc05bfab3e2d26bb95d8
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
 
@@ -0,0 +1,91 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Functions
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/functions/v1/rest"
28
+ # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Functions"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}/locations",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config
57
+ end
58
+ yield @configure if block_given?
59
+ @configure
60
+ end
61
+
62
+ ##
63
+ # @private
64
+ # Configuration class for the google.cloud.functions.v1 package.
65
+ #
66
+ # This class contains common configuration for all services
67
+ # of the google.cloud.functions.v1 package.
68
+ #
69
+ # This configuration is for internal use of the client library classes,
70
+ # and it is not intended that the end-users will read or change it.
71
+ #
72
+ class Configuration
73
+ extend ::Gapic::Config
74
+
75
+ # @private
76
+ # Overrides for http bindings for the RPC of the mixins for this package.
77
+ # Services in this package should use these when creating clients for the mixin services.
78
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
79
+ config_attr :bindings_override, {}, ::Hash, nil
80
+
81
+ # @private
82
+ def initialize parent_config = nil
83
+ @parent_config = parent_config unless parent_config.nil?
84
+
85
+ yield self if block_given?
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/functions/v1/functions_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -147,7 +149,7 @@ module Google
147
149
  credentials = @config.credentials
148
150
  # Use self-signed JWT if the endpoint is unchanged from default,
149
151
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
151
153
  !@config.endpoint.split(".").first.include?("-")
152
154
  credentials ||= Credentials.default scope: @config.scope,
153
155
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -163,6 +165,18 @@ module Google
163
165
  config.endpoint = @config.endpoint
164
166
  end
165
167
 
168
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
169
+ config.credentials = credentials
170
+ config.quota_project = @quota_project_id
171
+ config.endpoint = @config.endpoint
172
+ end
173
+
174
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @config.endpoint
178
+ end
179
+
166
180
  @cloud_functions_service_stub = ::Gapic::ServiceStub.new(
167
181
  ::Google::Cloud::Functions::V1::CloudFunctionsService::Stub,
168
182
  credentials: credentials,
@@ -179,6 +193,20 @@ module Google
179
193
  #
180
194
  attr_reader :operations_client
181
195
 
196
+ ##
197
+ # Get the associated client for mix-in of the Locations.
198
+ #
199
+ # @return [Google::Cloud::Location::Locations::Client]
200
+ #
201
+ attr_reader :location_client
202
+
203
+ ##
204
+ # Get the associated client for mix-in of the IAMPolicy.
205
+ #
206
+ # @return [Google::Iam::V1::IAMPolicy::Client]
207
+ #
208
+ attr_reader :iam_policy_client
209
+
182
210
  # Service calls
183
211
 
184
212
  ##
@@ -370,7 +398,7 @@ module Google
370
398
 
371
399
  ##
372
400
  # Creates a new function. If a function with the given name already exists in
373
- # the specified project, the long running operation will return
401
+ # the specified project, the long running operation returns an
374
402
  # `ALREADY_EXISTS` error.
375
403
  #
376
404
  # @overload create_function(request, options = nil)
@@ -389,8 +417,8 @@ module Google
389
417
  # the default parameter values, pass an empty Hash as a request object (see above).
390
418
  #
391
419
  # @param location [::String]
392
- # Required. The project and location in which the function should be created, specified
393
- # in the format `projects/*/locations/*`
420
+ # Required. The project and location in which the function should be created,
421
+ # specified in the format `projects/*/locations/*`
394
422
  # @param function [::Google::Cloud::Functions::V1::CloudFunction, ::Hash]
395
423
  # Required. Function to be created.
396
424
  #
@@ -563,7 +591,7 @@ module Google
563
591
 
564
592
  ##
565
593
  # Deletes a function with the given name from the specified project. If the
566
- # given function is used by some trigger, the trigger will be updated to
594
+ # given function is used by some trigger, the trigger is updated to
567
595
  # remove this function.
568
596
  #
569
597
  # @overload delete_function(request, options = nil)
@@ -764,12 +792,12 @@ module Google
764
792
  # attached, the identity from the credentials would be used, but that
765
793
  # identity does not have permissions to upload files to the URL.
766
794
  #
767
- # When making a HTTP PUT request, these two headers need to be specified:
795
+ # When making an HTTP PUT request, these two headers must be specified:
768
796
  #
769
797
  # * `content-type: application/zip`
770
798
  # * `x-goog-content-length-range: 0,104857600`
771
799
  #
772
- # And this header SHOULD NOT be specified:
800
+ # And this header must NOT be specified:
773
801
  #
774
802
  # * `Authorization: Bearer YOUR_TOKEN`
775
803
  #
@@ -876,9 +904,9 @@ module Google
876
904
 
877
905
  ##
878
906
  # Returns a signed URL for downloading deployed function source code.
879
- # The URL is only valid for a limited period and should be used within
907
+ # The URL is only valid for a limited period and must be used within
880
908
  # minutes after generation.
881
- # For more information about the signed URL usage see:
909
+ # For more information about the signed URL usage, see:
882
910
  # https://cloud.google.com/storage/docs/access-control/signed-urls
883
911
  #
884
912
  # @overload generate_download_url(request, options = nil)
@@ -1159,7 +1187,7 @@ module Google
1159
1187
  ##
1160
1188
  # Tests the specified permissions against the IAM access control policy
1161
1189
  # for a function.
1162
- # If the function does not exist, this will return an empty set of
1190
+ # If the function does not exist, this returns an empty set of
1163
1191
  # permissions, not a NOT_FOUND error.
1164
1192
  #
1165
1193
  # @overload test_iam_permissions(request, options = nil)
@@ -1288,9 +1316,9 @@ module Google
1288
1316
  # * (`String`) The path to a service account key file in JSON format
1289
1317
  # * (`Hash`) A service account key as a Hash
1290
1318
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1291
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1319
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1292
1320
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1293
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1321
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1294
1322
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1295
1323
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1296
1324
  # * (`nil`) indicating no credentials
@@ -1332,7 +1360,9 @@ module Google
1332
1360
  class Configuration
1333
1361
  extend ::Gapic::Config
1334
1362
 
1335
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
1363
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
1364
+
1365
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1336
1366
  config_attr :credentials, nil do |value|
1337
1367
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1338
1368
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -612,9 +612,9 @@ module Google
612
612
  # * (`String`) The path to a service account key file in JSON format
613
613
  # * (`Hash`) A service account key as a Hash
614
614
  # * (`Google::Auth::Credentials`) A googleauth credentials object
615
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
615
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
616
616
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
617
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
617
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
618
618
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
619
619
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
620
620
  # * (`nil`) indicating no credentials
@@ -656,7 +656,9 @@ module Google
656
656
  class Configuration
657
657
  extend ::Gapic::Config
658
658
 
659
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
659
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
660
+
661
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
660
662
  config_attr :credentials, nil do |value|
661
663
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
662
664
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -19,6 +19,8 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/functions/v1/functions_pb"
21
21
  require "google/cloud/functions/v1/cloud_functions_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
22
24
 
23
25
  module Google
24
26
  module Cloud
@@ -143,7 +145,7 @@ module Google
143
145
  credentials = @config.credentials
144
146
  # Use self-signed JWT if the endpoint is unchanged from default,
145
147
  # but only if the default endpoint does not have a region prefix.
146
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
148
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
147
149
  !@config.endpoint.split(".").first.include?("-")
148
150
  credentials ||= Credentials.default scope: @config.scope,
149
151
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -160,6 +162,19 @@ module Google
160
162
  config.endpoint = @config.endpoint
161
163
  end
162
164
 
165
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
166
+ config.credentials = credentials
167
+ config.quota_project = @quota_project_id
168
+ config.endpoint = @config.endpoint
169
+ config.bindings_override = @config.bindings_override
170
+ end
171
+
172
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
173
+ config.credentials = credentials
174
+ config.quota_project = @quota_project_id
175
+ config.endpoint = @config.endpoint
176
+ end
177
+
163
178
  @cloud_functions_service_stub = ::Google::Cloud::Functions::V1::CloudFunctionsService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
164
179
  end
165
180
 
@@ -170,6 +185,20 @@ module Google
170
185
  #
171
186
  attr_reader :operations_client
172
187
 
188
+ ##
189
+ # Get the associated client for mix-in of the Locations.
190
+ #
191
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
192
+ #
193
+ attr_reader :location_client
194
+
195
+ ##
196
+ # Get the associated client for mix-in of the IAMPolicy.
197
+ #
198
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
199
+ #
200
+ attr_reader :iam_policy_client
201
+
173
202
  # Service calls
174
203
 
175
204
  ##
@@ -310,7 +339,7 @@ module Google
310
339
 
311
340
  ##
312
341
  # Creates a new function. If a function with the given name already exists in
313
- # the specified project, the long running operation will return
342
+ # the specified project, the long running operation returns an
314
343
  # `ALREADY_EXISTS` error.
315
344
  #
316
345
  # @overload create_function(request, options = nil)
@@ -329,8 +358,8 @@ module Google
329
358
  # the default parameter values, pass an empty Hash as a request object (see above).
330
359
  #
331
360
  # @param location [::String]
332
- # Required. The project and location in which the function should be created, specified
333
- # in the format `projects/*/locations/*`
361
+ # Required. The project and location in which the function should be created,
362
+ # specified in the format `projects/*/locations/*`
334
363
  # @param function [::Google::Cloud::Functions::V1::CloudFunction, ::Hash]
335
364
  # Required. Function to be created.
336
365
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -443,7 +472,7 @@ module Google
443
472
 
444
473
  ##
445
474
  # Deletes a function with the given name from the specified project. If the
446
- # given function is used by some trigger, the trigger will be updated to
475
+ # given function is used by some trigger, the trigger is updated to
447
476
  # remove this function.
448
477
  #
449
478
  # @overload delete_function(request, options = nil)
@@ -591,12 +620,12 @@ module Google
591
620
  # attached, the identity from the credentials would be used, but that
592
621
  # identity does not have permissions to upload files to the URL.
593
622
  #
594
- # When making a HTTP PUT request, these two headers need to be specified:
623
+ # When making an HTTP PUT request, these two headers must be specified:
595
624
  #
596
625
  # * `content-type: application/zip`
597
626
  # * `x-goog-content-length-range: 0,104857600`
598
627
  #
599
- # And this header SHOULD NOT be specified:
628
+ # And this header must NOT be specified:
600
629
  #
601
630
  # * `Authorization: Bearer YOUR_TOKEN`
602
631
  #
@@ -680,9 +709,9 @@ module Google
680
709
 
681
710
  ##
682
711
  # Returns a signed URL for downloading deployed function source code.
683
- # The URL is only valid for a limited period and should be used within
712
+ # The URL is only valid for a limited period and must be used within
684
713
  # minutes after generation.
685
- # For more information about the signed URL usage see:
714
+ # For more information about the signed URL usage, see:
686
715
  # https://cloud.google.com/storage/docs/access-control/signed-urls
687
716
  #
688
717
  # @overload generate_download_url(request, options = nil)
@@ -894,7 +923,7 @@ module Google
894
923
  ##
895
924
  # Tests the specified permissions against the IAM access control policy
896
925
  # for a function.
897
- # If the function does not exist, this will return an empty set of
926
+ # If the function does not exist, this returns an empty set of
898
927
  # permissions, not a NOT_FOUND error.
899
928
  #
900
929
  # @overload test_iam_permissions(request, options = nil)
@@ -1000,9 +1029,9 @@ module Google
1000
1029
  # * (`String`) The path to a service account key file in JSON format
1001
1030
  # * (`Hash`) A service account key as a Hash
1002
1031
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1003
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1032
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1004
1033
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1005
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1034
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1006
1035
  # * (`nil`) indicating no credentials
1007
1036
  # @return [::Object]
1008
1037
  # @!attribute [rw] scope
@@ -1035,7 +1064,9 @@ module Google
1035
1064
  class Configuration
1036
1065
  extend ::Gapic::Config
1037
1066
 
1038
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
1067
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
1068
+
1069
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1039
1070
  config_attr :credentials, nil do |value|
1040
1071
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1041
1072
  allowed.any? { |klass| klass === value }
@@ -1048,6 +1079,13 @@ module Google
1048
1079
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1049
1080
  config_attr :quota_project, nil, ::String, nil
1050
1081
 
1082
+ # @private
1083
+ # Overrides for http bindings for the RPCs of this service
1084
+ # are only used when this service is used as mixin, and only
1085
+ # by the host service.
1086
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1087
+ config_attr :bindings_override, {}, ::Hash, nil
1088
+
1051
1089
  # @private
1052
1090
  def initialize parent_config = nil
1053
1091
  @parent_config = parent_config unless parent_config.nil?
@@ -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
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_functions_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_function_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_function_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_function_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_function_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_call_function_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_generate_upload_url_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_generate_download_url_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -21,6 +21,7 @@ require "gapic/config"
21
21
  require "gapic/config/method"
22
22
 
23
23
  require "google/cloud/functions/v1/version"
24
+ require "google/cloud/functions/v1/bindings_override"
24
25
 
25
26
  require "google/cloud/functions/v1/cloud_functions_service/credentials"
26
27
  require "google/cloud/functions/v1/cloud_functions_service/paths"