google-cloud-functions-v1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 133bdb41fa5847f2a169ab5b0b744c7c953c16d0b3cf8be94f797b5aad70db2c
4
- data.tar.gz: 7b3d55d42cfe0df7b29ae045405dd806cff0dc9370db1c9015bc7d75de8fd06d
3
+ metadata.gz: 3fba3fb2c098d2470a15bd03cb16d7165121a250ca6d0e9ae18a121fcb302c9c
4
+ data.tar.gz: 852239166c3c69109ad71fb82a8708544290a7ed62b96a2f10b843d7ac2c4389
5
5
  SHA512:
6
- metadata.gz: 21ac38859d881bcbfb5cccc6c377e5fc3de1c7bbd2f27058831a316c03e8072eaf1d298114c8f957d89abf9fd95754c140ab16bca3bef4dcbbaaf868e76f6148
7
- data.tar.gz: eb2d5c20d73f555e73be0109a03b9b6e18b6b0cc7479ff9b7c1b6d297e7a05282c71c88d6ec5d93249716532257a441f0c6f7b02cde8f909bf06af6a1529d1db
6
+ metadata.gz: 2079f69ef96bd938584ad79752c0fa7b73c3262aadbd138649dc3582b14c97b6e42b9a0fce93d286bf4363f7b030b58b6eca3c550779821db5f2f4193ccd7f5f
7
+ data.tar.gz: ddf0842cbb852efd37a073b8c8e5d87349a711d685e3b643068a108fa739d49a969d78ff133f52cc7d3619342a39812e7498aa9d074250a17461bf887eb844b9
@@ -149,7 +149,7 @@ module Google
149
149
  credentials = @config.credentials
150
150
  # Use self-signed JWT if the endpoint is unchanged from default,
151
151
  # but only if the default endpoint does not have a region prefix.
152
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
153
153
  !@config.endpoint.split(".").first.include?("-")
154
154
  credentials ||= Credentials.default scope: @config.scope,
155
155
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -182,7 +182,8 @@ module Google
182
182
  credentials: credentials,
183
183
  endpoint: @config.endpoint,
184
184
  channel_args: @config.channel_args,
185
- interceptors: @config.interceptors
185
+ interceptors: @config.interceptors,
186
+ channel_pool_config: @config.channel_pool
186
187
  )
187
188
  end
188
189
 
@@ -1360,7 +1361,9 @@ module Google
1360
1361
  class Configuration
1361
1362
  extend ::Gapic::Config
1362
1363
 
1363
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
1364
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
1365
+
1366
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1364
1367
  config_attr :credentials, nil do |value|
1365
1368
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1366
1369
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1395,6 +1398,14 @@ module Google
1395
1398
  end
1396
1399
  end
1397
1400
 
1401
+ ##
1402
+ # Configuration for the channel pool
1403
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1404
+ #
1405
+ def channel_pool
1406
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1407
+ end
1408
+
1398
1409
  ##
1399
1410
  # Configuration RPC class for the CloudFunctionsService API.
1400
1411
  #
@@ -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
@@ -656,7 +657,9 @@ module Google
656
657
  class Configuration
657
658
  extend ::Gapic::Config
658
659
 
659
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
660
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
661
+
662
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
660
663
  config_attr :credentials, nil do |value|
661
664
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
662
665
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -691,6 +694,14 @@ module Google
691
694
  end
692
695
  end
693
696
 
697
+ ##
698
+ # Configuration for the channel pool
699
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
700
+ #
701
+ def channel_pool
702
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
703
+ end
704
+
694
705
  ##
695
706
  # Configuration RPC class for the Operations API.
696
707
  #
@@ -145,7 +145,7 @@ module Google
145
145
  credentials = @config.credentials
146
146
  # Use self-signed JWT if the endpoint is unchanged from default,
147
147
  # but only if the default endpoint does not have a region prefix.
148
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
148
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
149
149
  !@config.endpoint.split(".").first.include?("-")
150
150
  credentials ||= Credentials.default scope: @config.scope,
151
151
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -240,6 +240,26 @@ module Google
240
240
  # @return [::Google::Cloud::Functions::V1::ListFunctionsResponse]
241
241
  #
242
242
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
243
+ #
244
+ # @example Basic example
245
+ # require "google/cloud/functions/v1"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Cloud::Functions::V1::ListFunctionsRequest.new
252
+ #
253
+ # # Call the list_functions method.
254
+ # result = client.list_functions request
255
+ #
256
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
257
+ # # over elements, and API calls will be issued to fetch pages as needed.
258
+ # result.each do |item|
259
+ # # Each element is of type ::Google::Cloud::Functions::V1::CloudFunction.
260
+ # p item
261
+ # end
262
+ #
243
263
  def list_functions request, options = nil
244
264
  raise ::ArgumentError, "request must be provided" if request.nil?
245
265
 
@@ -302,6 +322,22 @@ module Google
302
322
  # @return [::Google::Cloud::Functions::V1::CloudFunction]
303
323
  #
304
324
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
325
+ #
326
+ # @example Basic example
327
+ # require "google/cloud/functions/v1"
328
+ #
329
+ # # Create a client object. The client can be reused for multiple calls.
330
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
331
+ #
332
+ # # Create a request. To set request fields, pass in keyword arguments.
333
+ # request = Google::Cloud::Functions::V1::GetFunctionRequest.new
334
+ #
335
+ # # Call the get_function method.
336
+ # result = client.get_function request
337
+ #
338
+ # # The returned object is of type Google::Cloud::Functions::V1::CloudFunction.
339
+ # p result
340
+ #
305
341
  def get_function request, options = nil
306
342
  raise ::ArgumentError, "request must be provided" if request.nil?
307
343
 
@@ -369,6 +405,29 @@ module Google
369
405
  # @return [::Gapic::Operation]
370
406
  #
371
407
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
408
+ #
409
+ # @example Basic example
410
+ # require "google/cloud/functions/v1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::Functions::V1::CreateFunctionRequest.new
417
+ #
418
+ # # Call the create_function method.
419
+ # result = client.create_function request
420
+ #
421
+ # # The returned object is of type Gapic::Operation. You can use it to
422
+ # # check the status of an operation, cancel it, or wait for results.
423
+ # # Here is how to wait for a response.
424
+ # result.wait_until_done! timeout: 60
425
+ # if result.response?
426
+ # p result.response
427
+ # else
428
+ # puts "No response received."
429
+ # end
430
+ #
372
431
  def create_function request, options = nil
373
432
  raise ::ArgumentError, "request must be provided" if request.nil?
374
433
 
@@ -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/v1"
499
+ #
500
+ # # Create a client object. The client can be reused for multiple calls.
501
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
502
+ #
503
+ # # Create a request. To set request fields, pass in keyword arguments.
504
+ # request = Google::Cloud::Functions::V1::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/v1"
587
+ #
588
+ # # Create a client object. The client can be reused for multiple calls.
589
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
590
+ #
591
+ # # Create a request. To set request fields, pass in keyword arguments.
592
+ # request = Google::Cloud::Functions::V1::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
 
@@ -567,6 +672,22 @@ module Google
567
672
  # @return [::Google::Cloud::Functions::V1::CallFunctionResponse]
568
673
  #
569
674
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
675
+ #
676
+ # @example Basic example
677
+ # require "google/cloud/functions/v1"
678
+ #
679
+ # # Create a client object. The client can be reused for multiple calls.
680
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
681
+ #
682
+ # # Create a request. To set request fields, pass in keyword arguments.
683
+ # request = Google::Cloud::Functions::V1::CallFunctionRequest.new
684
+ #
685
+ # # Call the call_function method.
686
+ # result = client.call_function request
687
+ #
688
+ # # The returned object is of type Google::Cloud::Functions::V1::CallFunctionResponse.
689
+ # p result
690
+ #
570
691
  def call_function request, options = nil
571
692
  raise ::ArgumentError, "request must be provided" if request.nil?
572
693
 
@@ -672,6 +793,22 @@ module Google
672
793
  # @return [::Google::Cloud::Functions::V1::GenerateUploadUrlResponse]
673
794
  #
674
795
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
796
+ #
797
+ # @example Basic example
798
+ # require "google/cloud/functions/v1"
799
+ #
800
+ # # Create a client object. The client can be reused for multiple calls.
801
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
802
+ #
803
+ # # Create a request. To set request fields, pass in keyword arguments.
804
+ # request = Google::Cloud::Functions::V1::GenerateUploadUrlRequest.new
805
+ #
806
+ # # Call the generate_upload_url method.
807
+ # result = client.generate_upload_url request
808
+ #
809
+ # # The returned object is of type Google::Cloud::Functions::V1::GenerateUploadUrlResponse.
810
+ # p result
811
+ #
675
812
  def generate_upload_url request, options = nil
676
813
  raise ::ArgumentError, "request must be provided" if request.nil?
677
814
 
@@ -742,6 +879,22 @@ module Google
742
879
  # @return [::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse]
743
880
  #
744
881
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
882
+ #
883
+ # @example Basic example
884
+ # require "google/cloud/functions/v1"
885
+ #
886
+ # # Create a client object. The client can be reused for multiple calls.
887
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
888
+ #
889
+ # # Create a request. To set request fields, pass in keyword arguments.
890
+ # request = Google::Cloud::Functions::V1::GenerateDownloadUrlRequest.new
891
+ #
892
+ # # Call the generate_download_url method.
893
+ # result = client.generate_download_url request
894
+ #
895
+ # # The returned object is of type Google::Cloud::Functions::V1::GenerateDownloadUrlResponse.
896
+ # p result
897
+ #
745
898
  def generate_download_url request, options = nil
746
899
  raise ::ArgumentError, "request must be provided" if request.nil?
747
900
 
@@ -817,6 +970,22 @@ module Google
817
970
  # @return [::Google::Iam::V1::Policy]
818
971
  #
819
972
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
973
+ #
974
+ # @example Basic example
975
+ # require "google/cloud/functions/v1"
976
+ #
977
+ # # Create a client object. The client can be reused for multiple calls.
978
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
979
+ #
980
+ # # Create a request. To set request fields, pass in keyword arguments.
981
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
982
+ #
983
+ # # Call the set_iam_policy method.
984
+ # result = client.set_iam_policy request
985
+ #
986
+ # # The returned object is of type Google::Iam::V1::Policy.
987
+ # p result
988
+ #
820
989
  def set_iam_policy request, options = nil
821
990
  raise ::ArgumentError, "request must be provided" if request.nil?
822
991
 
@@ -885,6 +1054,22 @@ module Google
885
1054
  # @return [::Google::Iam::V1::Policy]
886
1055
  #
887
1056
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1057
+ #
1058
+ # @example Basic example
1059
+ # require "google/cloud/functions/v1"
1060
+ #
1061
+ # # Create a client object. The client can be reused for multiple calls.
1062
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
1063
+ #
1064
+ # # Create a request. To set request fields, pass in keyword arguments.
1065
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1066
+ #
1067
+ # # Call the get_iam_policy method.
1068
+ # result = client.get_iam_policy request
1069
+ #
1070
+ # # The returned object is of type Google::Iam::V1::Policy.
1071
+ # p result
1072
+ #
888
1073
  def get_iam_policy request, options = nil
889
1074
  raise ::ArgumentError, "request must be provided" if request.nil?
890
1075
 
@@ -956,6 +1141,22 @@ module Google
956
1141
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
957
1142
  #
958
1143
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1144
+ #
1145
+ # @example Basic example
1146
+ # require "google/cloud/functions/v1"
1147
+ #
1148
+ # # Create a client object. The client can be reused for multiple calls.
1149
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
1150
+ #
1151
+ # # Create a request. To set request fields, pass in keyword arguments.
1152
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1153
+ #
1154
+ # # Call the test_iam_permissions method.
1155
+ # result = client.test_iam_permissions request
1156
+ #
1157
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1158
+ # p result
1159
+ #
959
1160
  def test_iam_permissions request, options = nil
960
1161
  raise ::ArgumentError, "request must be provided" if request.nil?
961
1162
 
@@ -1064,7 +1265,9 @@ module Google
1064
1265
  class Configuration
1065
1266
  extend ::Gapic::Config
1066
1267
 
1067
- config_attr :endpoint, "cloudfunctions.googleapis.com", ::String
1268
+ DEFAULT_ENDPOINT = "cloudfunctions.googleapis.com"
1269
+
1270
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1068
1271
  config_attr :credentials, nil do |value|
1069
1272
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1070
1273
  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_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
@@ -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/v1/functions.proto
3
4
 
@@ -16,161 +17,34 @@ require 'google/protobuf/empty_pb'
16
17
  require 'google/protobuf/field_mask_pb'
17
18
  require 'google/protobuf/timestamp_pb'
18
19
 
19
- Google::Protobuf::DescriptorPool.generated_pool.build do
20
- add_file("google/cloud/functions/v1/functions.proto", :syntax => :proto3) do
21
- add_message "google.cloud.functions.v1.CloudFunction" do
22
- optional :name, :string, 1
23
- optional :description, :string, 2
24
- optional :status, :enum, 7, "google.cloud.functions.v1.CloudFunctionStatus"
25
- optional :entry_point, :string, 8
26
- optional :runtime, :string, 19
27
- optional :timeout, :message, 9, "google.protobuf.Duration"
28
- optional :available_memory_mb, :int32, 10
29
- optional :service_account_email, :string, 11
30
- optional :update_time, :message, 12, "google.protobuf.Timestamp"
31
- optional :version_id, :int64, 14
32
- map :labels, :string, :string, 15
33
- map :environment_variables, :string, :string, 17
34
- map :build_environment_variables, :string, :string, 28
35
- optional :network, :string, 18
36
- optional :max_instances, :int32, 20
37
- optional :min_instances, :int32, 32
38
- optional :vpc_connector, :string, 22
39
- optional :vpc_connector_egress_settings, :enum, 23, "google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings"
40
- optional :ingress_settings, :enum, 24, "google.cloud.functions.v1.CloudFunction.IngressSettings"
41
- optional :kms_key_name, :string, 25
42
- optional :build_worker_pool, :string, 26
43
- optional :build_id, :string, 27
44
- optional :build_name, :string, 33
45
- repeated :secret_environment_variables, :message, 29, "google.cloud.functions.v1.SecretEnvVar"
46
- repeated :secret_volumes, :message, 30, "google.cloud.functions.v1.SecretVolume"
47
- optional :source_token, :string, 31
48
- optional :docker_repository, :string, 34
49
- optional :docker_registry, :enum, 35, "google.cloud.functions.v1.CloudFunction.DockerRegistry"
50
- oneof :source_code do
51
- optional :source_archive_url, :string, 3
52
- optional :source_repository, :message, 4, "google.cloud.functions.v1.SourceRepository"
53
- optional :source_upload_url, :string, 16
54
- end
55
- oneof :trigger do
56
- optional :https_trigger, :message, 5, "google.cloud.functions.v1.HttpsTrigger"
57
- optional :event_trigger, :message, 6, "google.cloud.functions.v1.EventTrigger"
58
- end
59
- end
60
- add_enum "google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings" do
61
- value :VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, 0
62
- value :PRIVATE_RANGES_ONLY, 1
63
- value :ALL_TRAFFIC, 2
64
- end
65
- add_enum "google.cloud.functions.v1.CloudFunction.IngressSettings" do
66
- value :INGRESS_SETTINGS_UNSPECIFIED, 0
67
- value :ALLOW_ALL, 1
68
- value :ALLOW_INTERNAL_ONLY, 2
69
- value :ALLOW_INTERNAL_AND_GCLB, 3
70
- end
71
- add_enum "google.cloud.functions.v1.CloudFunction.DockerRegistry" do
72
- value :DOCKER_REGISTRY_UNSPECIFIED, 0
73
- value :CONTAINER_REGISTRY, 1
74
- value :ARTIFACT_REGISTRY, 2
75
- end
76
- add_message "google.cloud.functions.v1.SourceRepository" do
77
- optional :url, :string, 1
78
- optional :deployed_url, :string, 2
79
- end
80
- add_message "google.cloud.functions.v1.HttpsTrigger" do
81
- optional :url, :string, 1
82
- optional :security_level, :enum, 2, "google.cloud.functions.v1.HttpsTrigger.SecurityLevel"
83
- end
84
- add_enum "google.cloud.functions.v1.HttpsTrigger.SecurityLevel" do
85
- value :SECURITY_LEVEL_UNSPECIFIED, 0
86
- value :SECURE_ALWAYS, 1
87
- value :SECURE_OPTIONAL, 2
88
- end
89
- add_message "google.cloud.functions.v1.EventTrigger" do
90
- optional :event_type, :string, 1
91
- optional :resource, :string, 2
92
- optional :service, :string, 3
93
- optional :failure_policy, :message, 5, "google.cloud.functions.v1.FailurePolicy"
94
- end
95
- add_message "google.cloud.functions.v1.FailurePolicy" do
96
- oneof :action do
97
- optional :retry, :message, 1, "google.cloud.functions.v1.FailurePolicy.Retry"
98
- end
99
- end
100
- add_message "google.cloud.functions.v1.FailurePolicy.Retry" do
101
- end
102
- add_message "google.cloud.functions.v1.SecretEnvVar" do
103
- optional :key, :string, 1
104
- optional :project_id, :string, 2
105
- optional :secret, :string, 3
106
- optional :version, :string, 4
107
- end
108
- add_message "google.cloud.functions.v1.SecretVolume" do
109
- optional :mount_path, :string, 1
110
- optional :project_id, :string, 2
111
- optional :secret, :string, 3
112
- repeated :versions, :message, 4, "google.cloud.functions.v1.SecretVolume.SecretVersion"
113
- end
114
- add_message "google.cloud.functions.v1.SecretVolume.SecretVersion" do
115
- optional :version, :string, 1
116
- optional :path, :string, 2
117
- end
118
- add_message "google.cloud.functions.v1.CreateFunctionRequest" do
119
- optional :location, :string, 1
120
- optional :function, :message, 2, "google.cloud.functions.v1.CloudFunction"
121
- end
122
- add_message "google.cloud.functions.v1.UpdateFunctionRequest" do
123
- optional :function, :message, 1, "google.cloud.functions.v1.CloudFunction"
124
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
125
- end
126
- add_message "google.cloud.functions.v1.GetFunctionRequest" do
127
- optional :name, :string, 1
128
- end
129
- add_message "google.cloud.functions.v1.ListFunctionsRequest" do
130
- optional :parent, :string, 1
131
- optional :page_size, :int32, 2
132
- optional :page_token, :string, 3
133
- end
134
- add_message "google.cloud.functions.v1.ListFunctionsResponse" do
135
- repeated :functions, :message, 1, "google.cloud.functions.v1.CloudFunction"
136
- optional :next_page_token, :string, 2
137
- repeated :unreachable, :string, 3
138
- end
139
- add_message "google.cloud.functions.v1.DeleteFunctionRequest" do
140
- optional :name, :string, 1
141
- end
142
- add_message "google.cloud.functions.v1.CallFunctionRequest" do
143
- optional :name, :string, 1
144
- optional :data, :string, 2
145
- end
146
- add_message "google.cloud.functions.v1.CallFunctionResponse" do
147
- optional :execution_id, :string, 1
148
- optional :result, :string, 2
149
- optional :error, :string, 3
150
- end
151
- add_message "google.cloud.functions.v1.GenerateUploadUrlRequest" do
152
- optional :parent, :string, 1
153
- optional :kms_key_name, :string, 2
154
- end
155
- add_message "google.cloud.functions.v1.GenerateUploadUrlResponse" do
156
- optional :upload_url, :string, 1
157
- end
158
- add_message "google.cloud.functions.v1.GenerateDownloadUrlRequest" do
159
- optional :name, :string, 1
160
- optional :version_id, :uint64, 2
161
- end
162
- add_message "google.cloud.functions.v1.GenerateDownloadUrlResponse" do
163
- optional :download_url, :string, 1
164
- end
165
- add_enum "google.cloud.functions.v1.CloudFunctionStatus" do
166
- value :CLOUD_FUNCTION_STATUS_UNSPECIFIED, 0
167
- value :ACTIVE, 1
168
- value :OFFLINE, 2
169
- value :DEPLOY_IN_PROGRESS, 3
170
- value :DELETE_IN_PROGRESS, 4
171
- value :UNKNOWN, 5
20
+
21
+ descriptor_data = "\n)google/cloud/functions/v1/functions.proto\x12\x19google.cloud.functions.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/functions/v1/operations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe7\x11\n\rCloudFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x12source_archive_url\x18\x03 \x01(\tH\x00\x12H\n\x11source_repository\x18\x04 \x01(\x0b\x32+.google.cloud.functions.v1.SourceRepositoryH\x00\x12\x1b\n\x11source_upload_url\x18\x10 \x01(\tH\x00\x12@\n\rhttps_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v1.HttpsTriggerH\x01\x12@\n\revent_trigger\x18\x06 \x01(\x0b\x32\'.google.cloud.functions.v1.EventTriggerH\x01\x12\x43\n\x06status\x18\x07 \x01(\x0e\x32..google.cloud.functions.v1.CloudFunctionStatusB\x03\xe0\x41\x03\x12\x13\n\x0b\x65ntry_point\x18\x08 \x01(\t\x12\x0f\n\x07runtime\x18\x13 \x01(\t\x12*\n\x07timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x61vailable_memory_mb\x18\n \x01(\x05\x12\x1d\n\x15service_account_email\x18\x0b \x01(\t\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nversion_id\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x0f \x03(\x0b\x32\x34.google.cloud.functions.v1.CloudFunction.LabelsEntry\x12\x61\n\x15\x65nvironment_variables\x18\x11 \x03(\x0b\x32\x42.google.cloud.functions.v1.CloudFunction.EnvironmentVariablesEntry\x12l\n\x1b\x62uild_environment_variables\x18\x1c \x03(\x0b\x32G.google.cloud.functions.v1.CloudFunction.BuildEnvironmentVariablesEntry\x12\x0f\n\x07network\x18\x12 \x01(\t\x12\x15\n\rmax_instances\x18\x14 \x01(\x05\x12\x15\n\rmin_instances\x18 \x01(\x05\x12\x15\n\rvpc_connector\x18\x16 \x01(\t\x12j\n\x1dvpc_connector_egress_settings\x18\x17 \x01(\x0e\x32\x43.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x18 \x01(\x0e\x32\x38.google.cloud.functions.v1.CloudFunction.IngressSettings\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x19\n\x11\x62uild_worker_pool\x18\x1a \x01(\t\x12\x15\n\x08\x62uild_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nbuild_name\x18! \x01(\tB\x03\xe0\x41\x03\x12M\n\x1csecret_environment_variables\x18\x1d \x03(\x0b\x32\'.google.cloud.functions.v1.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x1e \x03(\x0b\x32\'.google.cloud.functions.v1.SecretVolume\x12\x19\n\x0csource_token\x18\x1f \x01(\tB\x03\xe0\x41\x04\x12J\n\x11\x64ocker_repository\x18\" \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x12P\n\x0f\x64ocker_registry\x18# \x01(\x0e\x32\x37.google.cloud.functions.v1.CloudFunction.DockerRegistry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a@\n\x1e\x42uildEnvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02:n\xea\x41k\n+cloudfunctions.googleapis.com/CloudFunction\x12<projects/{project}/locations/{location}/functions/{function}B\r\n\x0bsource_codeB\t\n\x07trigger\":\n\x10SourceRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x19\n\x0c\x64\x65ployed_url\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc8\x01\n\x0cHttpsTrigger\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12M\n\x0esecurity_level\x18\x02 \x01(\x0e\x32\x35.google.cloud.functions.v1.HttpsTrigger.SecurityLevel\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"\x87\x01\n\x0c\x45ventTrigger\x12\x12\n\nevent_type\x18\x01 \x01(\t\x12\x10\n\x08resource\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12@\n\x0e\x66\x61ilure_policy\x18\x05 \x01(\x0b\x32(.google.cloud.functions.v1.FailurePolicy\"c\n\rFailurePolicy\x12?\n\x05retry\x18\x01 \x01(\x0b\x32..google.cloud.functions.v1.FailurePolicy.RetryH\x00\x1a\x07\n\x05RetryB\x08\n\x06\x61\x63tion\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xbf\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12G\n\x08versions\x18\x04 \x03(\x0b\x32\x35.google.cloud.functions.v1.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x95\x01\n\x15\x43reateFunctionRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\"\x89\x01\n\x15UpdateFunctionRequest\x12?\n\x08\x66unction\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"W\n\x12GetFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"u\n\x14ListFunctionsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x15ListFunctionsResponse\x12;\n\tfunctions\x18\x01 \x03(\x0b\x32(.google.cloud.functions.v1.CloudFunction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Z\n\x15\x44\x65leteFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"k\n\x13\x43\x61llFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\tB\x03\xe0\x41\x02\"K\n\x14\x43\x61llFunctionResponse\x12\x14\n\x0c\x65xecution_id\x18\x01 \x01(\t\x12\x0e\n\x06result\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"h\n\x18GenerateUploadUrlRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"/\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\">\n\x1aGenerateDownloadUrlRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\x04\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t*\x92\x01\n\x13\x43loudFunctionStatus\x12%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\x12\x16\n\x12\x44\x45PLOY_IN_PROGRESS\x10\x03\x12\x16\n\x12\x44\x45LETE_IN_PROGRESS\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05\x32\x97\x11\n\x15\x43loudFunctionsService\x12\xa9\x01\n\rListFunctions\x12/.google.cloud.functions.v1.ListFunctionsRequest\x1a\x30.google.cloud.functions.v1.ListFunctionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/functions\x12\xa4\x01\n\x0bGetFunction\x12-.google.cloud.functions.v1.GetFunctionRequest\x1a(.google.cloud.functions.v1.CloudFunction\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\x12\xdf\x01\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v1.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02;\"//v1/{location=projects/*/locations/*}/functions:\x08\x66unction\xda\x41\x11location,function\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xdd\x01\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v1.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\xda\x41\x08\x66unction\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xce\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v1.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\xca\x41,\n\x15google.protobuf.Empty\x12\x13OperationMetadataV1\x12\xba\x01\n\x0c\x43\x61llFunction\x12..google.cloud.functions.v1.CallFunctionRequest\x1a/.google.cloud.functions.v1.CallFunctionResponse\"I\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/functions/*}:call:\x01*\xda\x41\tname,data\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v1.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v1.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v1.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v1.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\x94\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\">/v1/{resource=projects/*/locations/*/functions/*}:setIamPolicy:\x01*\x12\x91\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{resource=projects/*/locations/*/functions/*}:getIamPolicy\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{resource=projects/*/locations/*/functions/*}:testIamPermissions:\x01*\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe1\x02\n\x1d\x63om.google.cloud.functions.v1B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv1/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
22
+
23
+ pool = Google::Protobuf::DescriptorPool.generated_pool
24
+
25
+ begin
26
+ pool.add_serialized_file(descriptor_data)
27
+ rescue TypeError => e
28
+ # Compatibility code: will be removed in the next major version.
29
+ require 'google/protobuf/descriptor_pb'
30
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
31
+ parsed.clear_dependency
32
+ serialized = parsed.class.encode(parsed)
33
+ file = pool.add_serialized_file(serialized)
34
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
35
+ imports = [
36
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
37
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
38
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
172
44
  end
173
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
174
48
  end
175
49
 
176
50
  module Google
@@ -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/v1/operations.proto
3
4
 
@@ -6,25 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/any_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/functions/v1/operations.proto", :syntax => :proto3) do
11
- add_message "google.cloud.functions.v1.OperationMetadataV1" do
12
- optional :target, :string, 1
13
- optional :type, :enum, 2, "google.cloud.functions.v1.OperationType"
14
- optional :request, :message, 3, "google.protobuf.Any"
15
- optional :version_id, :int64, 4
16
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
17
- optional :build_id, :string, 6
18
- optional :source_token, :string, 7
19
- optional :build_name, :string, 8
20
- end
21
- add_enum "google.cloud.functions.v1.OperationType" do
22
- value :OPERATION_UNSPECIFIED, 0
23
- value :CREATE_FUNCTION, 1
24
- value :UPDATE_FUNCTION, 2
25
- value :DELETE_FUNCTION, 3
10
+
11
+ descriptor_data = "\n*google/cloud/functions/v1/operations.proto\x12\x19google.cloud.functions.v1\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x85\x02\n\x13OperationMetadataV1\x12\x0e\n\x06target\x18\x01 \x01(\t\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.cloud.functions.v1.OperationType\x12%\n\x07request\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x12\n\nversion_id\x18\x04 \x01(\x03\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x62uild_id\x18\x06 \x01(\t\x12\x14\n\x0csource_token\x18\x07 \x01(\t\x12\x12\n\nbuild_name\x18\x08 \x01(\t*i\n\rOperationType\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43REATE_FUNCTION\x10\x01\x12\x13\n\x0fUPDATE_FUNCTION\x10\x02\x12\x13\n\x0f\x44\x45LETE_FUNCTION\x10\x03\x42x\n\x1d\x63om.google.cloud.functions.v1B\x18\x46unctionsOperationsProtoP\x01Z;cloud.google.com/go/functions/apiv1/functionspb;functionspbb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
33
  end
27
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
28
37
  end
29
38
 
30
39
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.12.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
@@ -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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.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-17 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.18.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.18.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.4.2
263
+ rubygems_version: 3.4.19
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Manages lightweight user-provided functions executed in response to events.