google-cloud-functions-v1 0.15.0 → 1.0.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: f7eb4fc2c185a9b1edba51d59b6abf3e22ac71fc14dc54ca393ff02916a63906
4
- data.tar.gz: 0b6314f6dc1b8ff2393c504feff97bc63f40a81691d278b8f9d229e2f6fb07d2
3
+ metadata.gz: cdeed434dee7dc57d59399ca19002738ac680bb8692bdccb746c2c8b13c1bf8a
4
+ data.tar.gz: 2505db432926eca8249aa979cb6bfeac53685160f21e7608d6a3c07c287bcba5
5
5
  SHA512:
6
- metadata.gz: e72df2a27bfed60c92c2bc3f3c26cd1e2207036585dd4114d89a7f41832fdfcbfcc3b309a9f6dba7d29888ed537d59b72e732dc8adee5dd3290a9258d07a8927
7
- data.tar.gz: cb6c87cc31b026a726f82b96a9b4f85feef99168607a26335a941475e193d7d2dc6abd4dbf985958fcbd8623c014f93e79a6150bb45113d476b2b40cb3c75496
6
+ metadata.gz: 745d0cdcf3950f802fd99a7d3b8389b261bdb73e3face30b992eb40721af1d6718451b4223079f0037741fb15e587457877130d6d40df6f30e0dceb7b9a454c5
7
+ data.tar.gz: 1345e5d1a7d514c495e53c8d2e4c79c0cfc15543e55d2636f0ea92f61b8c2373bff92ed45a734226521a54676478003984d74d86f00a55c4a75926d295bafeac
@@ -32,6 +32,9 @@ module Google
32
32
  # A service that application uses to manipulate triggers and functions.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "cloudfunctions.$UNIVERSE_DOMAIN$"
37
40
 
@@ -299,10 +302,11 @@ module Google
299
302
  # Customize the options with defaults
300
303
  metadata = @config.rpcs.list_functions.metadata.to_h
301
304
 
302
- # Set x-goog-api-client and x-goog-user-project headers
305
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
303
306
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
304
307
  lib_name: @config.lib_name, lib_version: @config.lib_version,
305
308
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
309
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
310
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
311
 
308
312
  header_params = {}
@@ -392,10 +396,11 @@ module Google
392
396
  # Customize the options with defaults
393
397
  metadata = @config.rpcs.get_function.metadata.to_h
394
398
 
395
- # Set x-goog-api-client and x-goog-user-project headers
399
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
396
400
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
397
401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
398
402
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
403
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
399
404
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
400
405
 
401
406
  header_params = {}
@@ -489,10 +494,11 @@ module Google
489
494
  # Customize the options with defaults
490
495
  metadata = @config.rpcs.create_function.metadata.to_h
491
496
 
492
- # Set x-goog-api-client and x-goog-user-project headers
497
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
493
498
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
494
499
  lib_name: @config.lib_name, lib_version: @config.lib_version,
495
500
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
501
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
496
502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
497
503
 
498
504
  header_params = {}
@@ -584,10 +590,11 @@ module Google
584
590
  # Customize the options with defaults
585
591
  metadata = @config.rpcs.update_function.metadata.to_h
586
592
 
587
- # Set x-goog-api-client and x-goog-user-project headers
593
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
588
594
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
589
595
  lib_name: @config.lib_name, lib_version: @config.lib_version,
590
596
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
597
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
591
598
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
592
599
 
593
600
  header_params = {}
@@ -679,10 +686,11 @@ module Google
679
686
  # Customize the options with defaults
680
687
  metadata = @config.rpcs.delete_function.metadata.to_h
681
688
 
682
- # Set x-goog-api-client and x-goog-user-project headers
689
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
683
690
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
684
691
  lib_name: @config.lib_name, lib_version: @config.lib_version,
685
692
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
693
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
686
694
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
687
695
 
688
696
  header_params = {}
@@ -770,10 +778,11 @@ module Google
770
778
  # Customize the options with defaults
771
779
  metadata = @config.rpcs.call_function.metadata.to_h
772
780
 
773
- # Set x-goog-api-client and x-goog-user-project headers
781
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
774
782
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
775
783
  lib_name: @config.lib_name, lib_version: @config.lib_version,
776
784
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
785
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
777
786
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
778
787
 
779
788
  header_params = {}
@@ -898,10 +907,11 @@ module Google
898
907
  # Customize the options with defaults
899
908
  metadata = @config.rpcs.generate_upload_url.metadata.to_h
900
909
 
901
- # Set x-goog-api-client and x-goog-user-project headers
910
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
902
911
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
903
912
  lib_name: @config.lib_name, lib_version: @config.lib_version,
904
913
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
914
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
905
915
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
906
916
 
907
917
  header_params = {}
@@ -991,10 +1001,11 @@ module Google
991
1001
  # Customize the options with defaults
992
1002
  metadata = @config.rpcs.generate_download_url.metadata.to_h
993
1003
 
994
- # Set x-goog-api-client and x-goog-user-project headers
1004
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
995
1005
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
996
1006
  lib_name: @config.lib_name, lib_version: @config.lib_version,
997
1007
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
1008
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1009
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1010
 
1000
1011
  header_params = {}
@@ -1089,10 +1100,11 @@ module Google
1089
1100
  # Customize the options with defaults
1090
1101
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1091
1102
 
1092
- # Set x-goog-api-client and x-goog-user-project headers
1103
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1093
1104
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1094
1105
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1095
1106
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
1107
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1096
1108
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1097
1109
 
1098
1110
  header_params = {}
@@ -1180,10 +1192,11 @@ module Google
1180
1192
  # Customize the options with defaults
1181
1193
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1182
1194
 
1183
- # Set x-goog-api-client and x-goog-user-project headers
1195
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1184
1196
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1185
1197
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1186
1198
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
1199
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1187
1200
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1188
1201
 
1189
1202
  header_params = {}
@@ -1274,10 +1287,11 @@ module Google
1274
1287
  # Customize the options with defaults
1275
1288
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1276
1289
 
1277
- # Set x-goog-api-client and x-goog-user-project headers
1290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1278
1291
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1279
1292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1280
1293
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
1294
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1281
1295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1282
1296
 
1283
1297
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module CloudFunctionsService
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::V1::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
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -279,10 +283,11 @@ module Google
279
283
  # Customize the options with defaults
280
284
  metadata = @config.rpcs.get_operation.metadata.to_h
281
285
 
282
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
283
287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
289
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
286
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
292
 
288
293
  header_params = {}
@@ -368,10 +373,11 @@ module Google
368
373
  # Customize the options with defaults
369
374
  metadata = @config.rpcs.delete_operation.metadata.to_h
370
375
 
371
- # 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
372
377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
379
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
382
 
377
383
  header_params = {}
@@ -462,10 +468,11 @@ module Google
462
468
  # Customize the options with defaults
463
469
  metadata = @config.rpcs.cancel_operation.metadata.to_h
464
470
 
465
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
474
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
477
 
471
478
  header_params = {}
@@ -566,10 +573,11 @@ module Google
566
573
  # Customize the options with defaults
567
574
  metadata = @config.rpcs.wait_operation.metadata.to_h
568
575
 
569
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
577
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
579
  gapic_version: ::Google::Cloud::Functions::V1::VERSION
580
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
582
 
575
583
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # A service that application uses to manipulate triggers and functions.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "cloudfunctions.$UNIVERSE_DOMAIN$"
39
42
 
@@ -292,12 +295,13 @@ module Google
292
295
  # Customize the options with defaults
293
296
  call_metadata = @config.rpcs.list_functions.metadata.to_h
294
297
 
295
- # Set x-goog-api-client and x-goog-user-project headers
298
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
296
299
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
297
300
  lib_name: @config.lib_name, lib_version: @config.lib_version,
298
301
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
299
302
  transports_version_send: [:rest]
300
303
 
304
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
301
305
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
302
306
 
303
307
  options.apply_defaults timeout: @config.rpcs.list_functions.timeout,
@@ -377,12 +381,13 @@ module Google
377
381
  # Customize the options with defaults
378
382
  call_metadata = @config.rpcs.get_function.metadata.to_h
379
383
 
380
- # 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
381
385
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
383
387
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
384
388
  transports_version_send: [:rest]
385
389
 
390
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
386
391
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
387
392
 
388
393
  options.apply_defaults timeout: @config.rpcs.get_function.timeout,
@@ -467,12 +472,13 @@ module Google
467
472
  # Customize the options with defaults
468
473
  call_metadata = @config.rpcs.create_function.metadata.to_h
469
474
 
470
- # Set x-goog-api-client and x-goog-user-project headers
475
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
471
476
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
472
477
  lib_name: @config.lib_name, lib_version: @config.lib_version,
473
478
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
474
479
  transports_version_send: [:rest]
475
480
 
481
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
476
482
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
483
 
478
484
  options.apply_defaults timeout: @config.rpcs.create_function.timeout,
@@ -555,12 +561,13 @@ module Google
555
561
  # Customize the options with defaults
556
562
  call_metadata = @config.rpcs.update_function.metadata.to_h
557
563
 
558
- # Set x-goog-api-client and x-goog-user-project headers
564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
559
565
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
560
566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
561
567
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
562
568
  transports_version_send: [:rest]
563
569
 
570
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
564
571
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
565
572
 
566
573
  options.apply_defaults timeout: @config.rpcs.update_function.timeout,
@@ -643,12 +650,13 @@ module Google
643
650
  # Customize the options with defaults
644
651
  call_metadata = @config.rpcs.delete_function.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
650
657
  transports_version_send: [:rest]
651
658
 
659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
652
660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
653
661
 
654
662
  options.apply_defaults timeout: @config.rpcs.delete_function.timeout,
@@ -727,12 +735,13 @@ module Google
727
735
  # Customize the options with defaults
728
736
  call_metadata = @config.rpcs.call_function.metadata.to_h
729
737
 
730
- # Set x-goog-api-client and x-goog-user-project headers
738
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
731
739
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
732
740
  lib_name: @config.lib_name, lib_version: @config.lib_version,
733
741
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
734
742
  transports_version_send: [:rest]
735
743
 
744
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
736
745
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
746
 
738
747
  options.apply_defaults timeout: @config.rpcs.call_function.timeout,
@@ -848,12 +857,13 @@ module Google
848
857
  # Customize the options with defaults
849
858
  call_metadata = @config.rpcs.generate_upload_url.metadata.to_h
850
859
 
851
- # 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
852
861
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
853
862
  lib_name: @config.lib_name, lib_version: @config.lib_version,
854
863
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
855
864
  transports_version_send: [:rest]
856
865
 
866
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
857
867
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
858
868
 
859
869
  options.apply_defaults timeout: @config.rpcs.generate_upload_url.timeout,
@@ -934,12 +944,13 @@ module Google
934
944
  # Customize the options with defaults
935
945
  call_metadata = @config.rpcs.generate_download_url.metadata.to_h
936
946
 
937
- # Set x-goog-api-client and x-goog-user-project headers
947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
938
948
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
939
949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
940
950
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
941
951
  transports_version_send: [:rest]
942
952
 
953
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
943
954
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
944
955
 
945
956
  options.apply_defaults timeout: @config.rpcs.generate_download_url.timeout,
@@ -1025,12 +1036,13 @@ module Google
1025
1036
  # Customize the options with defaults
1026
1037
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1027
1038
 
1028
- # Set x-goog-api-client and x-goog-user-project headers
1039
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1029
1040
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1030
1041
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1031
1042
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
1032
1043
  transports_version_send: [:rest]
1033
1044
 
1045
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1034
1046
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1035
1047
 
1036
1048
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1109,12 +1121,13 @@ module Google
1109
1121
  # Customize the options with defaults
1110
1122
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1111
1123
 
1112
- # Set x-goog-api-client and x-goog-user-project headers
1124
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1113
1125
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1114
1126
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1115
1127
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
1116
1128
  transports_version_send: [:rest]
1117
1129
 
1130
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1118
1131
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1119
1132
 
1120
1133
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1196,12 +1209,13 @@ module Google
1196
1209
  # Customize the options with defaults
1197
1210
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1198
1211
 
1199
- # Set x-goog-api-client and x-goog-user-project headers
1212
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1200
1213
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1201
1214
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1202
1215
  gapic_version: ::Google::Cloud::Functions::V1::VERSION,
1203
1216
  transports_version_send: [:rest]
1204
1217
 
1218
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1205
1219
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1206
1220
 
1207
1221
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.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::V1::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::V1::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::V1::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::V1::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.15.0"
24
+ VERSION = "1.0.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
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.15.0
4
+ version: 1.0.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-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common