google-cloud-functions-v2 0.4.0 → 0.5.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: 012a9474a58f8e02a1f00ba27190c71746da88e547f77094583595ce39db2a9e
4
- data.tar.gz: 6f9c3c16d2db384900fad7876e21ed54321450c381c2bed5b4747e4123dc0f4b
3
+ metadata.gz: 7e5e16894da239a3fe776013308e7b6d4c68bc2e312a5f27ba317ee645b2f3ce
4
+ data.tar.gz: 887b6d64a70e757908624f7592aff3c82ee7717aff80d07f1de1601ee8b7d428
5
5
  SHA512:
6
- metadata.gz: d0defe9614c2fd1ac748048a62558f1b725d6671b9cd92a5052289ae23b46ec2b3a0fed1f5b267796587b0704d5f202e482693da37adb332e0a63954ef23d974
7
- data.tar.gz: 8a8c954834cac8324abb22b0bf116c7701c04ca4da01028ab0cca869094c7fe9b3035c8ff407e85eb6feb91b08fc8ad386d743075e67e25c01577867ecefd197
6
+ metadata.gz: 1f2b9da2880d070cec5a10eefc46390c0227ed4738a0abb50b6a2a6e83416f1ddf65f86df248bd87d84ae7d15d41c2e86bb3cf9c5d8e18228a09064ce1e45e7d
7
+ data.tar.gz: b65e81294c87c53649a9380cc8cc824639423a18fb36577f21badc1b5449e05e0578846c2cce65794ff6a104f82422362822fde383e52c1d65442a8b2e4115d7
@@ -130,7 +130,7 @@ module Google
130
130
  credentials = @config.credentials
131
131
  # Use self-signed JWT if the endpoint is unchanged from default,
132
132
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
134
  !@config.endpoint.split(".").first.include?("-")
135
135
  credentials ||= Credentials.default scope: @config.scope,
136
136
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -163,7 +163,8 @@ module Google
163
163
  credentials: credentials,
164
164
  endpoint: @config.endpoint,
165
165
  channel_args: @config.channel_args,
166
- interceptors: @config.interceptors
166
+ interceptors: @config.interceptors,
167
+ channel_pool_config: @config.channel_pool
167
168
  )
168
169
  end
169
170
 
@@ -1068,7 +1069,9 @@ module Google
1068
1069
  class Configuration
1069
1070
  extend ::Gapic::Config
1070
1071
 
1071
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
1072
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
1073
+
1074
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1072
1075
  config_attr :credentials, nil do |value|
1073
1076
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1074
1077
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1103,6 +1106,14 @@ module Google
1103
1106
  end
1104
1107
  end
1105
1108
 
1109
+ ##
1110
+ # Configuration for the channel pool
1111
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1112
+ #
1113
+ def channel_pool
1114
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1115
+ end
1116
+
1106
1117
  ##
1107
1118
  # Configuration RPC class for the FunctionService API.
1108
1119
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -210,6 +210,22 @@ module Google
210
210
  # @return [::Google::Cloud::Functions::V2::Function]
211
211
  #
212
212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/functions/v2"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Functions::V2::GetFunctionRequest.new
222
+ #
223
+ # # Call the get_function method.
224
+ # result = client.get_function request
225
+ #
226
+ # # The returned object is of type Google::Cloud::Functions::V2::Function.
227
+ # p result
228
+ #
213
229
  def get_function request, options = nil
214
230
  raise ::ArgumentError, "request must be provided" if request.nil?
215
231
 
@@ -294,6 +310,26 @@ module Google
294
310
  # @return [::Google::Cloud::Functions::V2::ListFunctionsResponse]
295
311
  #
296
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/cloud/functions/v2"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Cloud::Functions::V2::ListFunctionsRequest.new
322
+ #
323
+ # # Call the list_functions method.
324
+ # result = client.list_functions request
325
+ #
326
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
327
+ # # over elements, and API calls will be issued to fetch pages as needed.
328
+ # result.each do |item|
329
+ # # Each element is of type ::Google::Cloud::Functions::V2::Function.
330
+ # p item
331
+ # end
332
+ #
297
333
  def list_functions request, options = nil
298
334
  raise ::ArgumentError, "request must be provided" if request.nil?
299
335
 
@@ -367,6 +403,29 @@ module Google
367
403
  # @return [::Gapic::Operation]
368
404
  #
369
405
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
406
+ #
407
+ # @example Basic example
408
+ # require "google/cloud/functions/v2"
409
+ #
410
+ # # Create a client object. The client can be reused for multiple calls.
411
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
412
+ #
413
+ # # Create a request. To set request fields, pass in keyword arguments.
414
+ # request = Google::Cloud::Functions::V2::CreateFunctionRequest.new
415
+ #
416
+ # # Call the create_function method.
417
+ # result = client.create_function request
418
+ #
419
+ # # The returned object is of type Gapic::Operation. You can use it to
420
+ # # check the status of an operation, cancel it, or wait for results.
421
+ # # Here is how to wait for a response.
422
+ # result.wait_until_done! timeout: 60
423
+ # if result.response?
424
+ # p result.response
425
+ # else
426
+ # puts "No response received."
427
+ # end
428
+ #
370
429
  def create_function request, options = nil
371
430
  raise ::ArgumentError, "request must be provided" if request.nil?
372
431
 
@@ -434,6 +493,29 @@ module Google
434
493
  # @return [::Gapic::Operation]
435
494
  #
436
495
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
496
+ #
497
+ # @example Basic example
498
+ # require "google/cloud/functions/v2"
499
+ #
500
+ # # Create a client object. The client can be reused for multiple calls.
501
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
502
+ #
503
+ # # Create a request. To set request fields, pass in keyword arguments.
504
+ # request = Google::Cloud::Functions::V2::UpdateFunctionRequest.new
505
+ #
506
+ # # Call the update_function method.
507
+ # result = client.update_function request
508
+ #
509
+ # # The returned object is of type Gapic::Operation. You can use it to
510
+ # # check the status of an operation, cancel it, or wait for results.
511
+ # # Here is how to wait for a response.
512
+ # result.wait_until_done! timeout: 60
513
+ # if result.response?
514
+ # p result.response
515
+ # else
516
+ # puts "No response received."
517
+ # end
518
+ #
437
519
  def update_function request, options = nil
438
520
  raise ::ArgumentError, "request must be provided" if request.nil?
439
521
 
@@ -499,6 +581,29 @@ module Google
499
581
  # @return [::Gapic::Operation]
500
582
  #
501
583
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
584
+ #
585
+ # @example Basic example
586
+ # require "google/cloud/functions/v2"
587
+ #
588
+ # # Create a client object. The client can be reused for multiple calls.
589
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
590
+ #
591
+ # # Create a request. To set request fields, pass in keyword arguments.
592
+ # request = Google::Cloud::Functions::V2::DeleteFunctionRequest.new
593
+ #
594
+ # # Call the delete_function method.
595
+ # result = client.delete_function request
596
+ #
597
+ # # The returned object is of type Gapic::Operation. You can use it to
598
+ # # check the status of an operation, cancel it, or wait for results.
599
+ # # Here is how to wait for a response.
600
+ # result.wait_until_done! timeout: 60
601
+ # if result.response?
602
+ # p result.response
603
+ # else
604
+ # puts "No response received."
605
+ # end
606
+ #
502
607
  def delete_function request, options = nil
503
608
  raise ::ArgumentError, "request must be provided" if request.nil?
504
609
 
@@ -601,6 +706,22 @@ module Google
601
706
  # @return [::Google::Cloud::Functions::V2::GenerateUploadUrlResponse]
602
707
  #
603
708
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
709
+ #
710
+ # @example Basic example
711
+ # require "google/cloud/functions/v2"
712
+ #
713
+ # # Create a client object. The client can be reused for multiple calls.
714
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
715
+ #
716
+ # # Create a request. To set request fields, pass in keyword arguments.
717
+ # request = Google::Cloud::Functions::V2::GenerateUploadUrlRequest.new
718
+ #
719
+ # # Call the generate_upload_url method.
720
+ # result = client.generate_upload_url request
721
+ #
722
+ # # The returned object is of type Google::Cloud::Functions::V2::GenerateUploadUrlResponse.
723
+ # p result
724
+ #
604
725
  def generate_upload_url request, options = nil
605
726
  raise ::ArgumentError, "request must be provided" if request.nil?
606
727
 
@@ -668,6 +789,22 @@ module Google
668
789
  # @return [::Google::Cloud::Functions::V2::GenerateDownloadUrlResponse]
669
790
  #
670
791
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
792
+ #
793
+ # @example Basic example
794
+ # require "google/cloud/functions/v2"
795
+ #
796
+ # # Create a client object. The client can be reused for multiple calls.
797
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
798
+ #
799
+ # # Create a request. To set request fields, pass in keyword arguments.
800
+ # request = Google::Cloud::Functions::V2::GenerateDownloadUrlRequest.new
801
+ #
802
+ # # Call the generate_download_url method.
803
+ # result = client.generate_download_url request
804
+ #
805
+ # # The returned object is of type Google::Cloud::Functions::V2::GenerateDownloadUrlResponse.
806
+ # p result
807
+ #
671
808
  def generate_download_url request, options = nil
672
809
  raise ::ArgumentError, "request must be provided" if request.nil?
673
810
 
@@ -734,6 +871,22 @@ module Google
734
871
  # @return [::Google::Cloud::Functions::V2::ListRuntimesResponse]
735
872
  #
736
873
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
874
+ #
875
+ # @example Basic example
876
+ # require "google/cloud/functions/v2"
877
+ #
878
+ # # Create a client object. The client can be reused for multiple calls.
879
+ # client = Google::Cloud::Functions::V2::FunctionService::Rest::Client.new
880
+ #
881
+ # # Create a request. To set request fields, pass in keyword arguments.
882
+ # request = Google::Cloud::Functions::V2::ListRuntimesRequest.new
883
+ #
884
+ # # Call the list_runtimes method.
885
+ # result = client.list_runtimes request
886
+ #
887
+ # # The returned object is of type Google::Cloud::Functions::V2::ListRuntimesResponse.
888
+ # p result
889
+ #
737
890
  def list_runtimes request, options = nil
738
891
  raise ::ArgumentError, "request must be provided" if request.nil?
739
892
 
@@ -842,7 +995,9 @@ module Google
842
995
  class Configuration
843
996
  extend ::Gapic::Config
844
997
 
845
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
998
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
999
+
1000
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
846
1001
  config_attr :credentials, nil do |value|
847
1002
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
848
1003
  allowed.any? { |klass| klass === value }
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -446,7 +521,9 @@ module Google
446
521
  class Configuration
447
522
  extend ::Gapic::Config
448
523
 
449
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
527
  config_attr :credentials, nil do |value|
451
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
529
  allowed.any? { |klass| klass === value }
@@ -567,7 +644,7 @@ module Google
567
644
 
568
645
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
646
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
647
+ query_string_params.to_h { |p| p.split "=", 2 }
571
648
  else
572
649
  {}
573
650
  end
@@ -605,7 +682,7 @@ module Google
605
682
 
606
683
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
684
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
685
+ query_string_params.to_h { |p| p.split "=", 2 }
609
686
  else
610
687
  {}
611
688
  end
@@ -643,7 +720,7 @@ module Google
643
720
 
644
721
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
722
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
723
+ query_string_params.to_h { |p| p.split "=", 2 }
647
724
  else
648
725
  {}
649
726
  end
@@ -681,7 +758,7 @@ module Google
681
758
 
682
759
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
760
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
761
+ query_string_params.to_h { |p| p.split "=", 2 }
685
762
  else
686
763
  {}
687
764
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_function_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_list_functions_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_generate_upload_url_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_download_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_list_runtimes_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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V2
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.4.0
4
+ version: 0.5.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-05-30 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.19.0
19
+ version: 0.20.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.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  - !ruby/object:Gem::Version
259
259
  version: '0'
260
260
  requirements: []
261
- rubygems_version: 3.4.2
261
+ rubygems_version: 3.4.19
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: Manages lightweight user-provided functions executed in response to events.