google-cloud-functions-v2 0.7.0 → 0.8.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: c55cbd2c00dd27f375fcb1f6cf06cde7216abeff3b72b95a248876c78182bb1b
4
- data.tar.gz: fe610eeb3ed24c568b006ea71014276330820b1bcbe9478c77534ad31f6297c3
3
+ metadata.gz: 88279e3f67935c388a65357cb1e530e347d0ff2ede02fc2f2aaafa9544833004
4
+ data.tar.gz: 65eb7a3548db1f6bfe2ae2d919eff54d0babfae47794c7591e6f26908834a4a7
5
5
  SHA512:
6
- metadata.gz: b27b8d2cc9d8ecd529c35e19a37b3bc5c40f516d80a3f7280ce2f5e165f12af47283b42391f3c2375ec1254042cb214a4be4202bad77a895cec43d3860ffe488
7
- data.tar.gz: a0ed78791ae2bf7716741f38422e6a8b58e2018b92568bdbef885cffb69298f8f154e28f400134a590724c2c12d3c2fff83359a377e654e2335e6fff5b4a12e3
6
+ metadata.gz: d0b5b7ce0de5e9fc348231b559822d0c1112e9b28af2ccf39ef594e6def26c860dc55626c5938a6016cbe0f589793380ced56c24a6a077e4d9b8e4a27a8abb30
7
+ data.tar.gz: 015c67436fca4e908577bf3f44d495560a9f0734defe44aaa505317264dff2f87d7c6cadec95bcacaa8e76a1d44984344ee6363e6e52f906359661de97b2892d
@@ -37,6 +37,9 @@ module Google
37
37
  # executed and how it is triggered.
38
38
  #
39
39
  class Client
40
+ # @private
41
+ API_VERSION = ""
42
+
40
43
  # @private
41
44
  DEFAULT_ENDPOINT_TEMPLATE = "cloudfunctions.$UNIVERSE_DOMAIN$"
42
45
 
@@ -222,13 +225,20 @@ module Google
222
225
  # @param options [::Gapic::CallOptions, ::Hash]
223
226
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
224
227
  #
225
- # @overload get_function(name: nil)
228
+ # @overload get_function(name: nil, revision: nil)
226
229
  # Pass arguments to `get_function` via keyword arguments. Note that at
227
230
  # least one keyword argument is required. To specify no parameters, or to keep all
228
231
  # the default parameter values, pass an empty Hash as a request object (see above).
229
232
  #
230
233
  # @param name [::String]
231
234
  # Required. The name of the function which details should be obtained.
235
+ # @param revision [::String]
236
+ # Optional. The version of the 1st gen function whose details should
237
+ # be obtained. The version of a 1st gen function is an integer that starts
238
+ # from 1 and gets incremented on redeployments. GCF may keep historical
239
+ # configs for old versions of 1st gen function. This field can be specified
240
+ # to fetch the historical configs. This field is valid only for GCF 1st gen
241
+ # function.
232
242
  #
233
243
  # @yield [response, operation] Access the result along with the RPC operation
234
244
  # @yieldparam response [::Google::Cloud::Functions::V2::Function]
@@ -264,10 +274,11 @@ module Google
264
274
  # Customize the options with defaults
265
275
  metadata = @config.rpcs.get_function.metadata.to_h
266
276
 
267
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
280
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
271
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
283
 
273
284
  header_params = {}
@@ -375,10 +386,11 @@ module Google
375
386
  # Customize the options with defaults
376
387
  metadata = @config.rpcs.list_functions.metadata.to_h
377
388
 
378
- # Set x-goog-api-client and x-goog-user-project headers
389
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
379
390
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
380
391
  lib_name: @config.lib_name, lib_version: @config.lib_version,
381
392
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
393
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
394
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
395
 
384
396
  header_params = {}
@@ -479,10 +491,11 @@ module Google
479
491
  # Customize the options with defaults
480
492
  metadata = @config.rpcs.create_function.metadata.to_h
481
493
 
482
- # Set x-goog-api-client and x-goog-user-project headers
494
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
483
495
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
484
496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
485
497
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
498
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
486
499
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
487
500
 
488
501
  header_params = {}
@@ -532,8 +545,7 @@ module Google
532
545
  # Required. New version of the function.
533
546
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
534
547
  # The list of fields to be updated.
535
- # If no field mask is provided, all provided fields in the request will be
536
- # updated.
548
+ # If no field mask is provided, all fields will be updated.
537
549
  #
538
550
  # @yield [response, operation] Access the result along with the RPC operation
539
551
  # @yieldparam response [::Gapic::Operation]
@@ -576,10 +588,11 @@ module Google
576
588
  # Customize the options with defaults
577
589
  metadata = @config.rpcs.update_function.metadata.to_h
578
590
 
579
- # Set x-goog-api-client and x-goog-user-project headers
591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
580
592
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
581
593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
582
594
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
595
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
596
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
597
 
585
598
  header_params = {}
@@ -671,10 +684,11 @@ module Google
671
684
  # Customize the options with defaults
672
685
  metadata = @config.rpcs.delete_function.metadata.to_h
673
686
 
674
- # Set x-goog-api-client and x-goog-user-project headers
687
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
675
688
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
676
689
  lib_name: @config.lib_name, lib_version: @config.lib_version,
677
690
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
691
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
678
692
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
679
693
 
680
694
  header_params = {}
@@ -719,11 +733,11 @@ module Google
719
733
  # attached, the identity from the credentials would be used, but that
720
734
  # identity does not have permissions to upload files to the URL.
721
735
  #
722
- # When making a HTTP PUT request, these two headers need to be specified:
736
+ # When making a HTTP PUT request, specify this header:
723
737
  #
724
738
  # * `content-type: application/zip`
725
739
  #
726
- # And this header SHOULD NOT be specified:
740
+ # Do not specify this header:
727
741
  #
728
742
  # * `Authorization: Bearer YOUR_TOKEN`
729
743
  #
@@ -737,7 +751,7 @@ module Google
737
751
  # @param options [::Gapic::CallOptions, ::Hash]
738
752
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
739
753
  #
740
- # @overload generate_upload_url(parent: nil, kms_key_name: nil)
754
+ # @overload generate_upload_url(parent: nil, kms_key_name: nil, environment: nil)
741
755
  # Pass arguments to `generate_upload_url` via keyword arguments. Note that at
742
756
  # least one keyword argument is required. To specify no parameters, or to keep all
743
757
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -761,6 +775,11 @@ module Google
761
775
  # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
762
776
  # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
763
777
  # Key/KeyRing/Project/Organization (least access preferred).
778
+ # @param environment [::Google::Cloud::Functions::V2::Environment]
779
+ # The function environment the generated upload url will be used for.
780
+ # The upload url for 2nd Gen functions can also be used for 1st gen
781
+ # functions, but not vice versa. If not specified, 2nd generation-style
782
+ # upload URLs are generated.
764
783
  #
765
784
  # @yield [response, operation] Access the result along with the RPC operation
766
785
  # @yieldparam response [::Google::Cloud::Functions::V2::GenerateUploadUrlResponse]
@@ -796,10 +815,11 @@ module Google
796
815
  # Customize the options with defaults
797
816
  metadata = @config.rpcs.generate_upload_url.metadata.to_h
798
817
 
799
- # Set x-goog-api-client and x-goog-user-project headers
818
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
800
819
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
801
820
  lib_name: @config.lib_name, lib_version: @config.lib_version,
802
821
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
822
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
803
823
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
824
 
805
825
  header_params = {}
@@ -886,10 +906,11 @@ module Google
886
906
  # Customize the options with defaults
887
907
  metadata = @config.rpcs.generate_download_url.metadata.to_h
888
908
 
889
- # Set x-goog-api-client and x-goog-user-project headers
909
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
890
910
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
891
911
  lib_name: @config.lib_name, lib_version: @config.lib_version,
892
912
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
913
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
893
914
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
894
915
 
895
916
  header_params = {}
@@ -975,10 +996,11 @@ module Google
975
996
  # Customize the options with defaults
976
997
  metadata = @config.rpcs.list_runtimes.metadata.to_h
977
998
 
978
- # Set x-goog-api-client and x-goog-user-project headers
999
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
979
1000
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
980
1001
  lib_name: @config.lib_name, lib_version: @config.lib_version,
981
1002
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
1003
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
982
1004
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
983
1005
 
984
1006
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module FunctionService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudfunctions.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Functions::V2::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -39,6 +39,9 @@ module Google
39
39
  # executed and how it is triggered.
40
40
  #
41
41
  class Client
42
+ # @private
43
+ API_VERSION = ""
44
+
42
45
  # @private
43
46
  DEFAULT_ENDPOINT_TEMPLATE = "cloudfunctions.$UNIVERSE_DOMAIN$"
44
47
 
@@ -217,13 +220,20 @@ module Google
217
220
  # @param options [::Gapic::CallOptions, ::Hash]
218
221
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
219
222
  #
220
- # @overload get_function(name: nil)
223
+ # @overload get_function(name: nil, revision: nil)
221
224
  # Pass arguments to `get_function` via keyword arguments. Note that at
222
225
  # least one keyword argument is required. To specify no parameters, or to keep all
223
226
  # the default parameter values, pass an empty Hash as a request object (see above).
224
227
  #
225
228
  # @param name [::String]
226
229
  # Required. The name of the function which details should be obtained.
230
+ # @param revision [::String]
231
+ # Optional. The version of the 1st gen function whose details should
232
+ # be obtained. The version of a 1st gen function is an integer that starts
233
+ # from 1 and gets incremented on redeployments. GCF may keep historical
234
+ # configs for old versions of 1st gen function. This field can be specified
235
+ # to fetch the historical configs. This field is valid only for GCF 1st gen
236
+ # function.
227
237
  # @yield [result, operation] Access the result along with the TransportOperation object
228
238
  # @yieldparam result [::Google::Cloud::Functions::V2::Function]
229
239
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -258,12 +268,13 @@ module Google
258
268
  # Customize the options with defaults
259
269
  call_metadata = @config.rpcs.get_function.metadata.to_h
260
270
 
261
- # Set x-goog-api-client and x-goog-user-project headers
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
272
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
274
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
265
275
  transports_version_send: [:rest]
266
276
 
277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
278
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
279
 
269
280
  options.apply_defaults timeout: @config.rpcs.get_function.timeout,
@@ -362,12 +373,13 @@ module Google
362
373
  # Customize the options with defaults
363
374
  call_metadata = @config.rpcs.list_functions.metadata.to_h
364
375
 
365
- # Set x-goog-api-client and x-goog-user-project headers
376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
366
377
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
368
379
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
369
380
  transports_version_send: [:rest]
370
381
 
382
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
371
383
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
372
384
 
373
385
  options.apply_defaults timeout: @config.rpcs.list_functions.timeout,
@@ -458,12 +470,13 @@ module Google
458
470
  # Customize the options with defaults
459
471
  call_metadata = @config.rpcs.create_function.metadata.to_h
460
472
 
461
- # Set x-goog-api-client and x-goog-user-project headers
473
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
462
474
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
463
475
  lib_name: @config.lib_name, lib_version: @config.lib_version,
464
476
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
465
477
  transports_version_send: [:rest]
466
478
 
479
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
467
480
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
468
481
 
469
482
  options.apply_defaults timeout: @config.rpcs.create_function.timeout,
@@ -505,8 +518,7 @@ module Google
505
518
  # Required. New version of the function.
506
519
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
507
520
  # The list of fields to be updated.
508
- # If no field mask is provided, all provided fields in the request will be
509
- # updated.
521
+ # If no field mask is provided, all fields will be updated.
510
522
  # @yield [result, operation] Access the result along with the TransportOperation object
511
523
  # @yieldparam result [::Gapic::Operation]
512
524
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -548,12 +560,13 @@ module Google
548
560
  # Customize the options with defaults
549
561
  call_metadata = @config.rpcs.update_function.metadata.to_h
550
562
 
551
- # Set x-goog-api-client and x-goog-user-project headers
563
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
552
564
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
553
565
  lib_name: @config.lib_name, lib_version: @config.lib_version,
554
566
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
555
567
  transports_version_send: [:rest]
556
568
 
569
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
557
570
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
558
571
 
559
572
  options.apply_defaults timeout: @config.rpcs.update_function.timeout,
@@ -636,12 +649,13 @@ module Google
636
649
  # Customize the options with defaults
637
650
  call_metadata = @config.rpcs.delete_function.metadata.to_h
638
651
 
639
- # Set x-goog-api-client and x-goog-user-project headers
652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
640
653
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
642
655
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
643
656
  transports_version_send: [:rest]
644
657
 
658
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
645
659
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
660
 
647
661
  options.apply_defaults timeout: @config.rpcs.delete_function.timeout,
@@ -678,11 +692,11 @@ module Google
678
692
  # attached, the identity from the credentials would be used, but that
679
693
  # identity does not have permissions to upload files to the URL.
680
694
  #
681
- # When making a HTTP PUT request, these two headers need to be specified:
695
+ # When making a HTTP PUT request, specify this header:
682
696
  #
683
697
  # * `content-type: application/zip`
684
698
  #
685
- # And this header SHOULD NOT be specified:
699
+ # Do not specify this header:
686
700
  #
687
701
  # * `Authorization: Bearer YOUR_TOKEN`
688
702
  #
@@ -696,7 +710,7 @@ module Google
696
710
  # @param options [::Gapic::CallOptions, ::Hash]
697
711
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
698
712
  #
699
- # @overload generate_upload_url(parent: nil, kms_key_name: nil)
713
+ # @overload generate_upload_url(parent: nil, kms_key_name: nil, environment: nil)
700
714
  # Pass arguments to `generate_upload_url` via keyword arguments. Note that at
701
715
  # least one keyword argument is required. To specify no parameters, or to keep all
702
716
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -720,6 +734,11 @@ module Google
720
734
  # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
721
735
  # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
722
736
  # Key/KeyRing/Project/Organization (least access preferred).
737
+ # @param environment [::Google::Cloud::Functions::V2::Environment]
738
+ # The function environment the generated upload url will be used for.
739
+ # The upload url for 2nd Gen functions can also be used for 1st gen
740
+ # functions, but not vice versa. If not specified, 2nd generation-style
741
+ # upload URLs are generated.
723
742
  # @yield [result, operation] Access the result along with the TransportOperation object
724
743
  # @yieldparam result [::Google::Cloud::Functions::V2::GenerateUploadUrlResponse]
725
744
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -754,12 +773,13 @@ module Google
754
773
  # Customize the options with defaults
755
774
  call_metadata = @config.rpcs.generate_upload_url.metadata.to_h
756
775
 
757
- # Set x-goog-api-client and x-goog-user-project headers
776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
758
777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
759
778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
760
779
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
761
780
  transports_version_send: [:rest]
762
781
 
782
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
763
783
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
764
784
 
765
785
  options.apply_defaults timeout: @config.rpcs.generate_upload_url.timeout,
@@ -837,12 +857,13 @@ module Google
837
857
  # Customize the options with defaults
838
858
  call_metadata = @config.rpcs.generate_download_url.metadata.to_h
839
859
 
840
- # Set x-goog-api-client and x-goog-user-project headers
860
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
841
861
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
842
862
  lib_name: @config.lib_name, lib_version: @config.lib_version,
843
863
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
844
864
  transports_version_send: [:rest]
845
865
 
866
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
846
867
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
847
868
 
848
869
  options.apply_defaults timeout: @config.rpcs.generate_download_url.timeout,
@@ -919,12 +940,13 @@ module Google
919
940
  # Customize the options with defaults
920
941
  call_metadata = @config.rpcs.list_runtimes.metadata.to_h
921
942
 
922
- # Set x-goog-api-client and x-goog-user-project headers
943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
923
944
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
924
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
925
946
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
926
947
  transports_version_send: [:rest]
927
948
 
949
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
928
950
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
929
951
 
930
952
  options.apply_defaults timeout: @config.rpcs.list_runtimes.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudfunctions.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Functions::V2::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -13,9 +13,10 @@ require 'google/protobuf/any_pb'
13
13
  require 'google/protobuf/empty_pb'
14
14
  require 'google/protobuf/field_mask_pb'
15
15
  require 'google/protobuf/timestamp_pb'
16
+ require 'google/type/date_pb'
16
17
 
17
18
 
18
- descriptor_data = "\n)google/cloud/functions/v2/functions.proto\x12\x19google.cloud.functions.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x87\x07\n\x08\x46unction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\x0c\x62uild_config\x18\x03 \x01(\x0b\x32&.google.cloud.functions.v2.BuildConfig\x12@\n\x0eservice_config\x18\x04 \x01(\x0b\x32(.google.cloud.functions.v2.ServiceConfig\x12>\n\revent_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v2.EventTrigger\x12=\n\x05state\x18\x06 \x01(\x0e\x32).google.cloud.functions.v2.Function.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.google.cloud.functions.v2.Function.LabelsEntry\x12\x44\n\x0estate_messages\x18\t \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessageB\x03\xe0\x41\x03\x12;\n\x0b\x65nvironment\x18\n \x01(\x0e\x32&.google.cloud.functions.v2.Environment\x12\x10\n\x03url\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05:~\xea\x41{\n&cloudfunctions.googleapis.com/Function\x12<projects/{project}/locations/{location}/functions/{function}*\tfunctions2\x08\x66unction\"\xb9\x01\n\x0cStateMessage\x12\x42\n\x08severity\x18\x01 \x01(\x0e\x32\x30.google.cloud.functions.v2.StateMessage.Severity\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"C\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03\"\xa3\x01\n\nRepoSource\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x0b\n\x03\x64ir\x18\x06 \x01(\t\x12\x14\n\x0cinvert_regex\x18\x07 \x01(\x08\x42\n\n\x08revision\"\x94\x01\n\x06Source\x12\x42\n\x0estorage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSourceH\x00\x12<\n\x0brepo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSourceH\x00\x42\x08\n\x06source\"\xa2\x01\n\x10SourceProvenance\x12I\n\x17resolved_storage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\x12\x43\n\x14resolved_repo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSource\"\xc7\x05\n\x0b\x42uildConfig\x12\x36\n\x05\x62uild\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x0f\n\x07runtime\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x12\x31\n\x06source\x18\x04 \x01(\x0b\x32!.google.cloud.functions.v2.Source\x12K\n\x11source_provenance\x18\x08 \x01(\x0b\x32+.google.cloud.functions.v2.SourceProvenanceB\x03\xe0\x41\x03\x12>\n\x0bworker_pool\x18\x05 \x01(\tB)\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12_\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32@.google.cloud.functions.v2.BuildConfig.EnvironmentVariablesEntry\x12N\n\x0f\x64ocker_registry\x18\n \x01(\x0e\x32\x35.google.cloud.functions.v2.BuildConfig.DockerRegistry\x12J\n\x11\x64ocker_repository\x18\x07 \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02\"\xaa\n\n\rServiceConfig\x12\x33\n\x07service\x18\x01 \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x18\n\x10\x61vailable_memory\x18\r \x01(\t\x12\x15\n\ravailable_cpu\x18\x16 \x01(\t\x12\x61\n\x15\x65nvironment_variables\x18\x04 \x03(\x0b\x32\x42.google.cloud.functions.v2.ServiceConfig.EnvironmentVariablesEntry\x12\x1a\n\x12max_instance_count\x18\x05 \x01(\x05\x12\x1a\n\x12min_instance_count\x18\x0c \x01(\x05\x12>\n\rvpc_connector\x18\x06 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12j\n\x1dvpc_connector_egress_settings\x18\x07 \x01(\x0e\x32\x43.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x08 \x01(\x0e\x32\x38.google.cloud.functions.v2.ServiceConfig.IngressSettings\x12\x10\n\x03uri\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x15service_account_email\x18\n \x01(\t\x12&\n\x1e\x61ll_traffic_on_latest_revision\x18\x10 \x01(\x08\x12M\n\x1csecret_environment_variables\x18\x11 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x13 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretVolume\x12\x15\n\x08revision\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12(\n max_instance_request_concurrency\x18\x14 \x01(\x05\x12N\n\x0esecurity_level\x18\x15 \x01(\x0e\x32\x36.google.cloud.functions.v2.ServiceConfig.SecurityLevel\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xbf\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12G\n\x08versions\x18\x04 \x03(\x0b\x32\x35.google.cloud.functions.v2.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x85\x04\n\x0c\x45ventTrigger\x12\x38\n\x07trigger\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Trigger\x12\x16\n\x0etrigger_region\x18\x02 \x01(\t\x12\x17\n\nevent_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12=\n\revent_filters\x18\x04 \x03(\x0b\x32&.google.cloud.functions.v2.EventFilter\x12\x39\n\x0cpubsub_topic\x18\x05 \x01(\tB#\xe0\x41\x01\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\"\n\x15service_account_email\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12N\n\x0cretry_policy\x18\x07 \x01(\x0e\x32\x33.google.cloud.functions.v2.EventTrigger.RetryPolicyB\x03\xe0\x41\x01\x12\x38\n\x07\x63hannel\x18\x08 \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Channel\"b\n\x0bRetryPolicy\x12\x1c\n\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\x1d\n\x19RETRY_POLICY_DO_NOT_RETRY\x10\x01\x12\x16\n\x12RETRY_POLICY_RETRY\x10\x02\"P\n\x0b\x45ventFilter\x12\x16\n\tattribute\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08operator\x18\x03 \x01(\tB\x03\xe0\x41\x01\"R\n\x12GetFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\x9f\x01\n\x14ListFunctionsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&cloudfunctions.googleapis.com/Function\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"}\n\x15ListFunctionsResponse\x12\x36\n\tfunctions\x18\x01 \x03(\x0b\x32#.google.cloud.functions.v2.Function\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa3\x01\n\x15\x43reateFunctionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x08\x66unction\x18\x02 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12\x13\n\x0b\x66unction_id\x18\x03 \x01(\t\"\x84\x01\n\x15UpdateFunctionRequest\x12:\n\x08\x66unction\x18\x01 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"U\n\x15\x44\x65leteFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\x93\x01\n\x18GenerateUploadUrlRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"q\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\x12@\n\x0estorage_source\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\"Z\n\x1aGenerateDownloadUrlRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t\"`\n\x13ListRuntimesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"\xae\x03\n\x14ListRuntimesResponse\x12I\n\x08runtimes\x18\x01 \x03(\x0b\x32\x37.google.cloud.functions.v2.ListRuntimesResponse.Runtime\x1a\xc9\x01\n\x07Runtime\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage\x12\x10\n\x08warnings\x18\x03 \x03(\t\x12;\n\x0b\x65nvironment\x18\x04 \x01(\x0e\x32&.google.cloud.functions.v2.Environment\"\x7f\n\x0cRuntimeStage\x12\x1d\n\x19RUNTIME_STAGE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x12\x08\n\x04\x42\x45TA\x10\x03\x12\x06\n\x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05\x12\x12\n\x0e\x44\x45\x43OMMISSIONED\x10\x06\"\xb8\x02\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\x12.\n\x10request_resource\x18\x08 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x30\n\x06stages\x18\t \x03(\x0b\x32 .google.cloud.functions.v2.Stage\"P\n\x10LocationMetadata\x12<\n\x0c\x65nvironments\x18\x01 \x03(\x0e\x32&.google.cloud.functions.v2.Environment\"\xc4\x03\n\x05Stage\x12\x33\n\x04name\x18\x01 \x01(\x0e\x32%.google.cloud.functions.v2.Stage.Name\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.cloud.functions.v2.Stage.State\x12\x10\n\x08resource\x18\x04 \x01(\t\x12\x14\n\x0cresource_uri\x18\x05 \x01(\t\x12?\n\x0estate_messages\x18\x06 \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessage\"\x84\x01\n\x04Name\x12\x14\n\x10NAME_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\x0b\n\x07SERVICE\x10\x03\x12\x0b\n\x07TRIGGER\x10\x04\x12\x14\n\x10SERVICE_ROLLBACK\x10\x05\x12\x14\n\x10TRIGGER_ROLLBACK\x10\x06\"N\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03*@\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\t\n\x05GEN_1\x10\x01\x12\t\n\x05GEN_2\x10\x02\x32\xaa\x0e\n\x0f\x46unctionService\x12\x9f\x01\n\x0bGetFunction\x12-.google.cloud.functions.v2.GetFunctionRequest\x1a#.google.cloud.functions.v2.Function\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/functions/*}\x12\xb2\x01\n\rListFunctions\x12/.google.cloud.functions.v2.ListFunctionsRequest\x1a\x30.google.cloud.functions.v2.ListFunctionsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/functions\x12\x95\x02\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v2.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\xda\x41\x1bparent,function,function_id\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/functions:\x08\x66unction\x12\x97\x02\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v2.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\xda\x41\x14\x66unction,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\x12\xe7\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v2.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.functions.v2.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/functions/*}\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v2.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v2.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v2.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v2.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\xae\x01\n\x0cListRuntimes\x12..google.cloud.functions.v2.ListRuntimesRequest\x1a/.google.cloud.functions.v2.ListRuntimesResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/runtimes\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xee\x07\n\x1d\x63om.google.cloud.functions.v2B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv2/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41Y\n\x1f\x63loudbuild.googleapis.com/Build\x12\x36projects/{project}/locations/{location}/builds/{build}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}\xea\x41X\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Trigger\x12:projects/{project}/locations/{location}/triggers/{trigger}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
19
+ descriptor_data = "\n)google/cloud/functions/v2/functions.proto\x12\x19google.cloud.functions.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xd9\x07\n\x08\x46unction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\x0c\x62uild_config\x18\x03 \x01(\x0b\x32&.google.cloud.functions.v2.BuildConfig\x12@\n\x0eservice_config\x18\x04 \x01(\x0b\x32(.google.cloud.functions.v2.ServiceConfig\x12>\n\revent_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v2.EventTrigger\x12=\n\x05state\x18\x06 \x01(\x0e\x32).google.cloud.functions.v2.Function.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.google.cloud.functions.v2.Function.LabelsEntry\x12\x44\n\x0estate_messages\x18\t \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessageB\x03\xe0\x41\x03\x12;\n\x0b\x65nvironment\x18\n \x01(\x0e\x32&.google.cloud.functions.v2.Environment\x12\x10\n\x03url\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x1a\n\rsatisfies_pzs\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05:~\xea\x41{\n&cloudfunctions.googleapis.com/Function\x12<projects/{project}/locations/{location}/functions/{function}*\tfunctions2\x08\x66unction\"\xb9\x01\n\x0cStateMessage\x12\x42\n\x08severity\x18\x01 \x01(\x0e\x32\x30.google.cloud.functions.v2.StateMessage.Severity\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"^\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03\x12\x19\n\x11source_upload_url\x18\x04 \x01(\t\"\xa3\x01\n\nRepoSource\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x0b\n\x03\x64ir\x18\x06 \x01(\t\x12\x14\n\x0cinvert_regex\x18\x07 \x01(\x08\x42\n\n\x08revision\"\xa7\x01\n\x06Source\x12\x42\n\x0estorage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSourceH\x00\x12<\n\x0brepo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSourceH\x00\x12\x11\n\x07git_uri\x18\x03 \x01(\tH\x00\x42\x08\n\x06source\"\xb3\x01\n\x10SourceProvenance\x12I\n\x17resolved_storage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\x12\x43\n\x14resolved_repo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSource\x12\x0f\n\x07git_uri\x18\x03 \x01(\t\"\xa2\x07\n\x0b\x42uildConfig\x12S\n\x17\x61utomatic_update_policy\x18( \x01(\x0b\x32\x30.google.cloud.functions.v2.AutomaticUpdatePolicyH\x00\x12R\n\x17on_deploy_update_policy\x18) \x01(\x0b\x32/.google.cloud.functions.v2.OnDeployUpdatePolicyH\x00\x12\x36\n\x05\x62uild\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x0f\n\x07runtime\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x12\x31\n\x06source\x18\x04 \x01(\x0b\x32!.google.cloud.functions.v2.Source\x12K\n\x11source_provenance\x18\x08 \x01(\x0b\x32+.google.cloud.functions.v2.SourceProvenanceB\x03\xe0\x41\x03\x12>\n\x0bworker_pool\x18\x05 \x01(\tB)\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12_\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32@.google.cloud.functions.v2.BuildConfig.EnvironmentVariablesEntry\x12N\n\x0f\x64ocker_registry\x18\n \x01(\x0e\x32\x35.google.cloud.functions.v2.BuildConfig.DockerRegistry\x12J\n\x11\x64ocker_repository\x18\x07 \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x12\x17\n\x0fservice_account\x18\x1b \x01(\t\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02\x42\x17\n\x15runtime_update_policy\"\xd4\n\n\rServiceConfig\x12\x33\n\x07service\x18\x01 \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x18\n\x10\x61vailable_memory\x18\r \x01(\t\x12\x15\n\ravailable_cpu\x18\x16 \x01(\t\x12\x61\n\x15\x65nvironment_variables\x18\x04 \x03(\x0b\x32\x42.google.cloud.functions.v2.ServiceConfig.EnvironmentVariablesEntry\x12\x1a\n\x12max_instance_count\x18\x05 \x01(\x05\x12\x1a\n\x12min_instance_count\x18\x0c \x01(\x05\x12>\n\rvpc_connector\x18\x06 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12j\n\x1dvpc_connector_egress_settings\x18\x07 \x01(\x0e\x32\x43.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x08 \x01(\x0e\x32\x38.google.cloud.functions.v2.ServiceConfig.IngressSettings\x12\x10\n\x03uri\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x15service_account_email\x18\n \x01(\t\x12&\n\x1e\x61ll_traffic_on_latest_revision\x18\x10 \x01(\x08\x12M\n\x1csecret_environment_variables\x18\x11 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x13 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretVolume\x12\x15\n\x08revision\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12(\n max_instance_request_concurrency\x18\x14 \x01(\x05\x12N\n\x0esecurity_level\x18\x15 \x01(\x0e\x32\x36.google.cloud.functions.v2.ServiceConfig.SecurityLevel\x12(\n\x1b\x62inary_authorization_policy\x18\x17 \x01(\tB\x03\xe0\x41\x01\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xbf\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12G\n\x08versions\x18\x04 \x03(\x0b\x32\x35.google.cloud.functions.v2.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x9b\x04\n\x0c\x45ventTrigger\x12\x38\n\x07trigger\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Trigger\x12\x16\n\x0etrigger_region\x18\x02 \x01(\t\x12\x17\n\nevent_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12=\n\revent_filters\x18\x04 \x03(\x0b\x32&.google.cloud.functions.v2.EventFilter\x12\x39\n\x0cpubsub_topic\x18\x05 \x01(\tB#\xe0\x41\x01\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\"\n\x15service_account_email\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12N\n\x0cretry_policy\x18\x07 \x01(\x0e\x32\x33.google.cloud.functions.v2.EventTrigger.RetryPolicyB\x03\xe0\x41\x01\x12\x38\n\x07\x63hannel\x18\x08 \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Channel\x12\x14\n\x07service\x18\t \x01(\tB\x03\xe0\x41\x01\"b\n\x0bRetryPolicy\x12\x1c\n\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\x1d\n\x19RETRY_POLICY_DO_NOT_RETRY\x10\x01\x12\x16\n\x12RETRY_POLICY_RETRY\x10\x02\"P\n\x0b\x45ventFilter\x12\x16\n\tattribute\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08operator\x18\x03 \x01(\tB\x03\xe0\x41\x01\"i\n\x12GetFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\x12\x15\n\x08revision\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n\x14ListFunctionsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&cloudfunctions.googleapis.com/Function\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"}\n\x15ListFunctionsResponse\x12\x36\n\tfunctions\x18\x01 \x03(\x0b\x32#.google.cloud.functions.v2.Function\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa3\x01\n\x15\x43reateFunctionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x08\x66unction\x18\x02 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12\x13\n\x0b\x66unction_id\x18\x03 \x01(\t\"\x84\x01\n\x15UpdateFunctionRequest\x12:\n\x08\x66unction\x18\x01 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"U\n\x15\x44\x65leteFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\xd0\x01\n\x18GenerateUploadUrlRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12;\n\x0b\x65nvironment\x18\x03 \x01(\x0e\x32&.google.cloud.functions.v2.Environment\"q\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\x12@\n\x0estorage_source\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\"Z\n\x1aGenerateDownloadUrlRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t\"`\n\x13ListRuntimesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"\x89\x04\n\x14ListRuntimesResponse\x12I\n\x08runtimes\x18\x01 \x03(\x0b\x32\x37.google.cloud.functions.v2.ListRuntimesResponse.Runtime\x1a\xa4\x02\n\x07Runtime\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage\x12\x10\n\x08warnings\x18\x03 \x03(\t\x12;\n\x0b\x65nvironment\x18\x04 \x01(\x0e\x32&.google.cloud.functions.v2.Environment\x12+\n\x10\x64\x65precation_date\x18\x06 \x01(\x0b\x32\x11.google.type.Date\x12,\n\x11\x64\x65\x63ommission_date\x18\x07 \x01(\x0b\x32\x11.google.type.Date\"\x7f\n\x0cRuntimeStage\x12\x1d\n\x19RUNTIME_STAGE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x12\x08\n\x04\x42\x45TA\x10\x03\x12\x06\n\x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05\x12\x12\n\x0e\x44\x45\x43OMMISSIONED\x10\x06\"\x17\n\x15\x41utomaticUpdatePolicy\"4\n\x14OnDeployUpdatePolicy\x12\x1c\n\x0fruntime_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\xa4\x03\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\x12.\n\x10request_resource\x18\x08 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x30\n\x06stages\x18\t \x03(\x0b\x32 .google.cloud.functions.v2.Stage\x12\x14\n\x0csource_token\x18\n \x01(\t\x12\x12\n\nbuild_name\x18\r \x01(\t\x12@\n\x0eoperation_type\x18\x0b \x01(\x0e\x32(.google.cloud.functions.v2.OperationType\"P\n\x10LocationMetadata\x12<\n\x0c\x65nvironments\x18\x01 \x03(\x0e\x32&.google.cloud.functions.v2.Environment\"\xc4\x03\n\x05Stage\x12\x33\n\x04name\x18\x01 \x01(\x0e\x32%.google.cloud.functions.v2.Stage.Name\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.cloud.functions.v2.Stage.State\x12\x10\n\x08resource\x18\x04 \x01(\t\x12\x14\n\x0cresource_uri\x18\x05 \x01(\t\x12?\n\x0estate_messages\x18\x06 \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessage\"\x84\x01\n\x04Name\x12\x14\n\x10NAME_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\x0b\n\x07SERVICE\x10\x03\x12\x0b\n\x07TRIGGER\x10\x04\x12\x14\n\x10SERVICE_ROLLBACK\x10\x05\x12\x14\n\x10TRIGGER_ROLLBACK\x10\x06\"N\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03*m\n\rOperationType\x12\x1d\n\x19OPERATIONTYPE_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*@\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\t\n\x05GEN_1\x10\x01\x12\t\n\x05GEN_2\x10\x02\x32\xaa\x0e\n\x0f\x46unctionService\x12\x9f\x01\n\x0bGetFunction\x12-.google.cloud.functions.v2.GetFunctionRequest\x1a#.google.cloud.functions.v2.Function\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/functions/*}\x12\xb2\x01\n\rListFunctions\x12/.google.cloud.functions.v2.ListFunctionsRequest\x1a\x30.google.cloud.functions.v2.ListFunctionsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/functions\x12\x95\x02\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v2.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\xda\x41\x1bparent,function,function_id\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/functions:\x08\x66unction\x12\x97\x02\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v2.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\xda\x41\x14\x66unction,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\x12\xe7\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v2.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.functions.v2.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/functions/*}\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v2.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v2.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v2.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v2.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\xae\x01\n\x0cListRuntimes\x12..google.cloud.functions.v2.ListRuntimesRequest\x1a/.google.cloud.functions.v2.ListRuntimesResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/runtimes\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xee\x07\n\x1d\x63om.google.cloud.functions.v2B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv2/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41Y\n\x1f\x63loudbuild.googleapis.com/Build\x12\x36projects/{project}/locations/{location}/builds/{build}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}\xea\x41X\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Trigger\x12:projects/{project}/locations/{location}/triggers/{trigger}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
19
20
 
20
21
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
22
 
@@ -32,6 +33,7 @@ rescue TypeError
32
33
  imports = [
33
34
  ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
35
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
36
+ ["google.type.Date", "google/type/date.proto"],
35
37
  ["google.protobuf.Any", "google/protobuf/any.proto"],
36
38
  ]
37
39
  imports.each do |type_name, expected_filename|
@@ -82,11 +84,14 @@ module Google
82
84
  ListRuntimesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse").msgclass
83
85
  ListRuntimesResponse::Runtime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse.Runtime").msgclass
84
86
  ListRuntimesResponse::RuntimeStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage").enummodule
87
+ AutomaticUpdatePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.AutomaticUpdatePolicy").msgclass
88
+ OnDeployUpdatePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.OnDeployUpdatePolicy").msgclass
85
89
  OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.OperationMetadata").msgclass
86
90
  LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.LocationMetadata").msgclass
87
91
  Stage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage").msgclass
88
92
  Stage::Name = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage.Name").enummodule
89
93
  Stage::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage.State").enummodule
94
+ OperationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.OperationType").enummodule
90
95
  Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Environment").enummodule
91
96
  end
92
97
  end
@@ -68,11 +68,11 @@ module Google
68
68
  # attached, the identity from the credentials would be used, but that
69
69
  # identity does not have permissions to upload files to the URL.
70
70
  #
71
- # When making a HTTP PUT request, these two headers need to be specified:
71
+ # When making a HTTP PUT request, specify this header:
72
72
  #
73
73
  # * `content-type: application/zip`
74
74
  #
75
- # And this header SHOULD NOT be specified:
75
+ # Do not specify this header:
76
76
  #
77
77
  # * `Authorization: Bearer YOUR_TOKEN`
78
78
  rpc :GenerateUploadUrl, ::Google::Cloud::Functions::V2::GenerateUploadUrlRequest, ::Google::Cloud::Functions::V2::GenerateUploadUrlResponse
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V2
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -286,6 +290,13 @@ module Google
286
290
  # @return [::String]
287
291
  # The fully qualified name of the method, for which the options below apply.
288
292
  # This is used to find the method to apply the options.
293
+ #
294
+ # Example:
295
+ #
296
+ # publishing:
297
+ # method_settings:
298
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
299
+ # # method settings for CreateFolder...
289
300
  # @!attribute [rw] long_running
290
301
  # @return [::Google::Api::MethodSettings::LongRunning]
291
302
  # Describes settings to use for long-running operations when generating
@@ -294,17 +305,14 @@ module Google
294
305
  #
295
306
  # Example of a YAML configuration::
296
307
  #
297
- # publishing:
298
- # method_settings:
308
+ # publishing:
309
+ # method_settings:
299
310
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
311
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
312
+ # initial_poll_delay: 60s # 1 minute
303
313
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
314
+ # max_poll_delay: 360s # 6 minutes
315
+ # total_poll_timeout: 54000s # 90 minutes
308
316
  # @!attribute [rw] auto_populated_fields
309
317
  # @return [::Array<::String>]
310
318
  # List of top-level fields of the request message, that should be
@@ -313,8 +321,8 @@ module Google
313
321
  #
314
322
  # Example of a YAML configuration:
315
323
  #
316
- # publishing:
317
- # method_settings:
324
+ # publishing:
325
+ # method_settings:
318
326
  # - selector: google.example.v1.ExampleService.CreateExample
319
327
  # auto_populated_fields:
320
328
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
@@ -67,6 +67,13 @@ module Google
67
67
  #
68
68
  # It must match the pattern
69
69
  # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
70
+ # @!attribute [r] satisfies_pzs
71
+ # @return [::Boolean]
72
+ # Output only. Reserved for future use.
73
+ # @!attribute [r] create_time
74
+ # @return [::Google::Protobuf::Timestamp]
75
+ # Output only. The create timestamp of a Cloud Function. This is only
76
+ # applicable to 2nd Gen functions.
70
77
  class Function
71
78
  include ::Google::Protobuf::MessageExts
72
79
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -149,6 +156,11 @@ module Google
149
156
  # @return [::Integer]
150
157
  # Google Cloud Storage generation for the object. If the generation is
151
158
  # omitted, the latest generation will be used.
159
+ # @!attribute [rw] source_upload_url
160
+ # @return [::String]
161
+ # When the specified storage bucket is a 1st gen function uploard url bucket,
162
+ # this field should be set as the generated upload url for 1st gen
163
+ # deployment.
152
164
  class StorageSource
153
165
  include ::Google::Protobuf::MessageExts
154
166
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -201,6 +213,11 @@ module Google
201
213
  # @return [::Google::Cloud::Functions::V2::RepoSource]
202
214
  # If provided, get the source from this location in a Cloud Source
203
215
  # Repository.
216
+ # @!attribute [rw] git_uri
217
+ # @return [::String]
218
+ # If provided, get the source from GitHub repository. This option is valid
219
+ # only for GCF 1st Gen function.
220
+ # Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
204
221
  class Source
205
222
  include ::Google::Protobuf::MessageExts
206
223
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -216,6 +233,10 @@ module Google
216
233
  # @return [::Google::Cloud::Functions::V2::RepoSource]
217
234
  # A copy of the build's `source.repo_source`, if exists, with any
218
235
  # revisions resolved.
236
+ # @!attribute [rw] git_uri
237
+ # @return [::String]
238
+ # A copy of the build's `source.git_uri`, if exists, with any commits
239
+ # resolved.
219
240
  class SourceProvenance
220
241
  include ::Google::Protobuf::MessageExts
221
242
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -223,6 +244,10 @@ module Google
223
244
 
224
245
  # Describes the Build step of the function that builds a container from the
225
246
  # given source.
247
+ # @!attribute [rw] automatic_update_policy
248
+ # @return [::Google::Cloud::Functions::V2::AutomaticUpdatePolicy]
249
+ # @!attribute [rw] on_deploy_update_policy
250
+ # @return [::Google::Cloud::Functions::V2::OnDeployUpdatePolicy]
226
251
  # @!attribute [r] build
227
252
  # @return [::String]
228
253
  # Output only. The Cloud Build name of the latest successful deployment of
@@ -271,16 +296,15 @@ module Google
271
296
  # applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
272
297
  # Registry.
273
298
  #
274
- # If `docker_repository` field is specified, this field will be automatically
275
- # set as `ARTIFACT_REGISTRY`.
276
- # If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
277
- # This field may be overridden by the backend for eligible deployments.
299
+ # If unspecified, it defaults to `ARTIFACT_REGISTRY`.
300
+ # If `docker_repository` field is specified, this field should either be left
301
+ # unspecified or set to `ARTIFACT_REGISTRY`.
278
302
  # @!attribute [rw] docker_repository
279
303
  # @return [::String]
280
- # User managed repository created in Artifact Registry optionally
281
- # with a customer managed encryption key. This is the repository to which the
282
- # function docker image will be pushed after it is built by Cloud Build.
283
- # If unspecified, GCF will create and use a repository named 'gcf-artifacts'
304
+ # Repository in Artifact Registry to which the function docker image will be
305
+ # pushed after it is built by Cloud Build. If specified by user, it is
306
+ # created and managed by user with a customer managed encryption key.
307
+ # Otherwise, GCF will create and use a repository named 'gcf-artifacts'
284
308
  # for every deployed region.
285
309
  #
286
310
  # It must match the pattern
@@ -289,6 +313,10 @@ module Google
289
313
  # Cross-project repositories are not supported.
290
314
  # Cross-location repositories are not supported.
291
315
  # Repository format must be 'DOCKER'.
316
+ # @!attribute [rw] service_account
317
+ # @return [::String]
318
+ # Service account to be used for building the container. The format of this
319
+ # field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
292
320
  class BuildConfig
293
321
  include ::Google::Protobuf::MessageExts
294
322
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -342,7 +370,7 @@ module Google
342
370
  # a full description.
343
371
  # @!attribute [rw] available_cpu
344
372
  # @return [::String]
345
- # [Preview] The number of CPUs used in a single container instance.
373
+ # The number of CPUs used in a single container instance.
346
374
  # Default value is calculated from available memory.
347
375
  # Supports the same values as Cloud Run, see
348
376
  # https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -412,7 +440,7 @@ module Google
412
440
  # Output only. The name of service revision.
413
441
  # @!attribute [rw] max_instance_request_concurrency
414
442
  # @return [::Integer]
415
- # [Preview] Sets the maximum number of concurrent requests that each instance
443
+ # Sets the maximum number of concurrent requests that each instance
416
444
  # can receive. Defaults to 1.
417
445
  # @!attribute [rw] security_level
418
446
  # @return [::Google::Cloud::Functions::V2::ServiceConfig::SecurityLevel]
@@ -420,6 +448,10 @@ module Google
420
448
  # This configuration is only applicable to 1st Gen functions with Http
421
449
  # trigger. By default https is optional for 1st Gen functions; 2nd Gen
422
450
  # functions are https ONLY.
451
+ # @!attribute [rw] binary_authorization_policy
452
+ # @return [::String]
453
+ # Optional. The binary authorization policy to be checked when deploying the
454
+ # Cloud Run service.
423
455
  class ServiceConfig
424
456
  include ::Google::Protobuf::MessageExts
425
457
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -605,6 +637,16 @@ module Google
605
637
  # Optional. The name of the channel associated with the trigger in
606
638
  # `projects/{project}/locations/{location}/channels/{channel}` format.
607
639
  # You must provide a channel to receive events from Eventarc SaaS partners.
640
+ # @!attribute [rw] service
641
+ # @return [::String]
642
+ # Optional. The hostname of the service that 1st Gen function should be
643
+ # observed.
644
+ #
645
+ # If no string is provided, the default service implementing the API will
646
+ # be used. For example, `storage.googleapis.com` is the default for all
647
+ # event types in the `google.storage` namespace.
648
+ #
649
+ # The field is only applicable to 1st Gen functions.
608
650
  class EventTrigger
609
651
  include ::Google::Protobuf::MessageExts
610
652
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -646,6 +688,14 @@ module Google
646
688
  # @!attribute [rw] name
647
689
  # @return [::String]
648
690
  # Required. The name of the function which details should be obtained.
691
+ # @!attribute [rw] revision
692
+ # @return [::String]
693
+ # Optional. The version of the 1st gen function whose details should
694
+ # be obtained. The version of a 1st gen function is an integer that starts
695
+ # from 1 and gets incremented on redeployments. GCF may keep historical
696
+ # configs for old versions of 1st gen function. This field can be specified
697
+ # to fetch the historical configs. This field is valid only for GCF 1st gen
698
+ # function.
649
699
  class GetFunctionRequest
650
700
  include ::Google::Protobuf::MessageExts
651
701
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -730,8 +780,7 @@ module Google
730
780
  # @!attribute [rw] update_mask
731
781
  # @return [::Google::Protobuf::FieldMask]
732
782
  # The list of fields to be updated.
733
- # If no field mask is provided, all provided fields in the request will be
734
- # updated.
783
+ # If no field mask is provided, all fields will be updated.
735
784
  class UpdateFunctionRequest
736
785
  include ::Google::Protobuf::MessageExts
737
786
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -768,6 +817,12 @@ module Google
768
817
  # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
769
818
  # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
770
819
  # Key/KeyRing/Project/Organization (least access preferred).
820
+ # @!attribute [rw] environment
821
+ # @return [::Google::Cloud::Functions::V2::Environment]
822
+ # The function environment the generated upload url will be used for.
823
+ # The upload url for 2nd Gen functions can also be used for 1st gen
824
+ # functions, but not vice versa. If not specified, 2nd generation-style
825
+ # upload URLs are generated.
771
826
  class GenerateUploadUrlRequest
772
827
  include ::Google::Protobuf::MessageExts
773
828
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -853,6 +908,12 @@ module Google
853
908
  # @!attribute [rw] environment
854
909
  # @return [::Google::Cloud::Functions::V2::Environment]
855
910
  # The environment for the runtime.
911
+ # @!attribute [rw] deprecation_date
912
+ # @return [::Google::Type::Date]
913
+ # Deprecation date for the runtime.
914
+ # @!attribute [rw] decommission_date
915
+ # @return [::Google::Type::Date]
916
+ # Decommission date for the runtime.
856
917
  class Runtime
857
918
  include ::Google::Protobuf::MessageExts
858
919
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -883,6 +944,23 @@ module Google
883
944
  end
884
945
  end
885
946
 
947
+ # Security patches are applied automatically to the runtime without requiring
948
+ # the function to be redeployed.
949
+ class AutomaticUpdatePolicy
950
+ include ::Google::Protobuf::MessageExts
951
+ extend ::Google::Protobuf::MessageExts::ClassMethods
952
+ end
953
+
954
+ # Security patches are only applied when a function is redeployed.
955
+ # @!attribute [r] runtime_version
956
+ # @return [::String]
957
+ # Output only. contains the runtime version which was used during latest
958
+ # function deployment.
959
+ class OnDeployUpdatePolicy
960
+ include ::Google::Protobuf::MessageExts
961
+ extend ::Google::Protobuf::MessageExts::ClassMethods
962
+ end
963
+
886
964
  # Represents the metadata of the long-running operation.
887
965
  # @!attribute [rw] create_time
888
966
  # @return [::Google::Protobuf::Timestamp]
@@ -903,9 +981,10 @@ module Google
903
981
  # @return [::Boolean]
904
982
  # Identifies whether the user has requested cancellation
905
983
  # of the operation. Operations that have successfully been cancelled
906
- # have [Operation.error][] value with a
907
- # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
908
- # `Code.CANCELLED`.
984
+ # have
985
+ # {::Google::Longrunning::Operation#error google.longrunning.Operation.error}
986
+ # value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
987
+ # corresponding to `Code.CANCELLED`.
909
988
  # @!attribute [rw] api_version
910
989
  # @return [::String]
911
990
  # API version used to start the operation.
@@ -915,6 +994,16 @@ module Google
915
994
  # @!attribute [rw] stages
916
995
  # @return [::Array<::Google::Cloud::Functions::V2::Stage>]
917
996
  # Mechanism for reporting in-progress stages
997
+ # @!attribute [rw] source_token
998
+ # @return [::String]
999
+ # An identifier for Firebase function sources. Disclaimer: This field is only
1000
+ # supported for Firebase function deployments.
1001
+ # @!attribute [rw] build_name
1002
+ # @return [::String]
1003
+ # The build name of the function for create and update operations.
1004
+ # @!attribute [rw] operation_type
1005
+ # @return [::Google::Cloud::Functions::V2::OperationType]
1006
+ # The operation type.
918
1007
  class OperationMetadata
919
1008
  include ::Google::Protobuf::MessageExts
920
1009
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -992,6 +1081,21 @@ module Google
992
1081
  end
993
1082
  end
994
1083
 
1084
+ # The type of the long running operation.
1085
+ module OperationType
1086
+ # Unspecified
1087
+ OPERATIONTYPE_UNSPECIFIED = 0
1088
+
1089
+ # CreateFunction
1090
+ CREATE_FUNCTION = 1
1091
+
1092
+ # UpdateFunction
1093
+ UPDATE_FUNCTION = 2
1094
+
1095
+ # DeleteFunction
1096
+ DELETE_FUNCTION = 3
1097
+ end
1098
+
995
1099
  # The environment the function is hosted on.
996
1100
  module Environment
997
1101
  # Unspecified
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+
20
+ module Google
21
+ module Type
22
+ # Represents a whole or partial calendar date, such as a birthday. The time of
23
+ # day and time zone are either specified elsewhere or are insignificant. The
24
+ # date is relative to the Gregorian Calendar. This can represent one of the
25
+ # following:
26
+ #
27
+ # * A full date, with non-zero year, month, and day values
28
+ # * A month and day value, with a zero year, such as an anniversary
29
+ # * A year on its own, with zero month and day values
30
+ # * A year and month value, with a zero day, such as a credit card expiration
31
+ # date
32
+ #
33
+ # Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
34
+ # `google.protobuf.Timestamp`.
35
+ # @!attribute [rw] year
36
+ # @return [::Integer]
37
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without
38
+ # a year.
39
+ # @!attribute [rw] month
40
+ # @return [::Integer]
41
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a
42
+ # month and day.
43
+ # @!attribute [rw] day
44
+ # @return [::Integer]
45
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
46
+ # to specify a year by itself or a year and month where the day isn't
47
+ # significant.
48
+ class Date
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
52
+ end
53
+ 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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -126,6 +126,7 @@ files:
126
126
  - proto_docs/google/protobuf/field_mask.rb
127
127
  - proto_docs/google/protobuf/timestamp.rb
128
128
  - proto_docs/google/rpc/status.rb
129
+ - proto_docs/google/type/date.rb
129
130
  - proto_docs/google/type/expr.rb
130
131
  homepage: https://github.com/googleapis/google-cloud-ruby
131
132
  licenses: