google-cloud-eventarc-v1 0.10.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: cf418dd7e287d84f232d2ebc2e10e200a68affefae1ee2be14f6b405f40a53f1
4
- data.tar.gz: 2baab110771ff3c1b5f111eb0a957b32307fe8d3e02aa6fc66034e1a385da974
3
+ metadata.gz: 264506146bb9f1504605a4cddddc5848ff3db5fd86176c25bee0ef98a47925c1
4
+ data.tar.gz: 8bc48e50ffa0895ad0c84a99e8cbe52df58aea934bb46e86a3a5157d8ee2d329
5
5
  SHA512:
6
- metadata.gz: 3379430c189da3ceb4ee08bf5b8a13176e94109da83c99cbfaa487e5c33f9f2ff7a4d7069162b6863837f430d5e298fb49cbfa7549f4ebf58fd09c52635f92f7
7
- data.tar.gz: a085fd906b984a86b3963ad73ea06ef9afebc755ebcfc39c7190145850d6582fdd0417c78b2dc6d48c21210bf2bf2920ca26fe221b7cc97ea8b92cbfd2572443
6
+ metadata.gz: 2632a1e7b705c127376f03083bb340480e76457cb3337b3c025c58caa5f7189a7446e50d8b56e5c312d153beba6ad3c4d2186520da115d1f1b2c7775eef32e6f
7
+ data.tar.gz: dbc3016a6caf6e00891ea401cee9d10db638b4e09fa4b222d6d620fc2ebc9b6e4ae7b63457a5cf17d436d42143af967551e38e79db73e7162fe217beded73d89
@@ -33,6 +33,9 @@ module Google
33
33
  # Google Cloud services and forward them to supported destinations.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "eventarc.$UNIVERSE_DOMAIN$"
38
41
 
@@ -260,10 +263,11 @@ module Google
260
263
  # Customize the options with defaults
261
264
  metadata = @config.rpcs.get_trigger.metadata.to_h
262
265
 
263
- # Set x-goog-api-client and x-goog-user-project headers
266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
267
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
269
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
270
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  header_params = {}
@@ -368,10 +372,11 @@ module Google
368
372
  # Customize the options with defaults
369
373
  metadata = @config.rpcs.list_triggers.metadata.to_h
370
374
 
371
- # Set x-goog-api-client and x-goog-user-project headers
375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
376
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
378
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
379
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
380
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
381
 
377
382
  header_params = {}
@@ -468,10 +473,11 @@ module Google
468
473
  # Customize the options with defaults
469
474
  metadata = @config.rpcs.create_trigger.metadata.to_h
470
475
 
471
- # Set x-goog-api-client and x-goog-user-project headers
476
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
472
477
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
473
478
  lib_name: @config.lib_name, lib_version: @config.lib_version,
474
479
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
480
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
475
481
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
482
 
477
483
  header_params = {}
@@ -571,10 +577,11 @@ module Google
571
577
  # Customize the options with defaults
572
578
  metadata = @config.rpcs.update_trigger.metadata.to_h
573
579
 
574
- # Set x-goog-api-client and x-goog-user-project headers
580
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
575
581
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
582
  lib_name: @config.lib_name, lib_version: @config.lib_version,
577
583
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
584
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
578
585
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
586
 
580
587
  header_params = {}
@@ -673,10 +680,11 @@ module Google
673
680
  # Customize the options with defaults
674
681
  metadata = @config.rpcs.delete_trigger.metadata.to_h
675
682
 
676
- # Set x-goog-api-client and x-goog-user-project headers
683
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
677
684
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
678
685
  lib_name: @config.lib_name, lib_version: @config.lib_version,
679
686
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
687
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
680
688
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
681
689
 
682
690
  header_params = {}
@@ -759,10 +767,11 @@ module Google
759
767
  # Customize the options with defaults
760
768
  metadata = @config.rpcs.get_channel.metadata.to_h
761
769
 
762
- # Set x-goog-api-client and x-goog-user-project headers
770
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
763
771
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
764
772
  lib_name: @config.lib_name, lib_version: @config.lib_version,
765
773
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
774
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
766
775
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
767
776
 
768
777
  header_params = {}
@@ -863,10 +872,11 @@ module Google
863
872
  # Customize the options with defaults
864
873
  metadata = @config.rpcs.list_channels.metadata.to_h
865
874
 
866
- # Set x-goog-api-client and x-goog-user-project headers
875
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
867
876
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
868
877
  lib_name: @config.lib_name, lib_version: @config.lib_version,
869
878
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
879
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
870
880
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
871
881
 
872
882
  header_params = {}
@@ -963,10 +973,11 @@ module Google
963
973
  # Customize the options with defaults
964
974
  metadata = @config.rpcs.create_channel.metadata.to_h
965
975
 
966
- # Set x-goog-api-client and x-goog-user-project headers
976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
967
977
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
968
978
  lib_name: @config.lib_name, lib_version: @config.lib_version,
969
979
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
970
981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
971
982
 
972
983
  header_params = {}
@@ -1063,10 +1074,11 @@ module Google
1063
1074
  # Customize the options with defaults
1064
1075
  metadata = @config.rpcs.update_channel.metadata.to_h
1065
1076
 
1066
- # Set x-goog-api-client and x-goog-user-project headers
1077
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1067
1078
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1068
1079
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1069
1080
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1081
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1070
1082
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1071
1083
 
1072
1084
  header_params = {}
@@ -1159,10 +1171,11 @@ module Google
1159
1171
  # Customize the options with defaults
1160
1172
  metadata = @config.rpcs.delete_channel.metadata.to_h
1161
1173
 
1162
- # Set x-goog-api-client and x-goog-user-project headers
1174
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1163
1175
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1164
1176
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1165
1177
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1178
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1166
1179
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1167
1180
 
1168
1181
  header_params = {}
@@ -1245,10 +1258,11 @@ module Google
1245
1258
  # Customize the options with defaults
1246
1259
  metadata = @config.rpcs.get_provider.metadata.to_h
1247
1260
 
1248
- # Set x-goog-api-client and x-goog-user-project headers
1261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1249
1262
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1250
1263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1251
1264
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1265
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1252
1266
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1253
1267
 
1254
1268
  header_params = {}
@@ -1349,10 +1363,11 @@ module Google
1349
1363
  # Customize the options with defaults
1350
1364
  metadata = @config.rpcs.list_providers.metadata.to_h
1351
1365
 
1352
- # Set x-goog-api-client and x-goog-user-project headers
1366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1353
1367
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1354
1368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1355
1369
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1370
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1356
1371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1357
1372
 
1358
1373
  header_params = {}
@@ -1435,10 +1450,11 @@ module Google
1435
1450
  # Customize the options with defaults
1436
1451
  metadata = @config.rpcs.get_channel_connection.metadata.to_h
1437
1452
 
1438
- # Set x-goog-api-client and x-goog-user-project headers
1453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1439
1454
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1440
1455
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1441
1456
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1457
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1442
1458
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1443
1459
 
1444
1460
  header_params = {}
@@ -1534,10 +1550,11 @@ module Google
1534
1550
  # Customize the options with defaults
1535
1551
  metadata = @config.rpcs.list_channel_connections.metadata.to_h
1536
1552
 
1537
- # Set x-goog-api-client and x-goog-user-project headers
1553
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1538
1554
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1539
1555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1540
1556
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1557
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1541
1558
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1542
1559
 
1543
1560
  header_params = {}
@@ -1631,10 +1648,11 @@ module Google
1631
1648
  # Customize the options with defaults
1632
1649
  metadata = @config.rpcs.create_channel_connection.metadata.to_h
1633
1650
 
1634
- # Set x-goog-api-client and x-goog-user-project headers
1651
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1635
1652
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1636
1653
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1637
1654
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1655
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1638
1656
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1639
1657
 
1640
1658
  header_params = {}
@@ -1724,10 +1742,11 @@ module Google
1724
1742
  # Customize the options with defaults
1725
1743
  metadata = @config.rpcs.delete_channel_connection.metadata.to_h
1726
1744
 
1727
- # Set x-goog-api-client and x-goog-user-project headers
1745
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1728
1746
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1729
1747
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1730
1748
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1749
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1731
1750
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1732
1751
 
1733
1752
  header_params = {}
@@ -1810,10 +1829,11 @@ module Google
1810
1829
  # Customize the options with defaults
1811
1830
  metadata = @config.rpcs.get_google_channel_config.metadata.to_h
1812
1831
 
1813
- # Set x-goog-api-client and x-goog-user-project headers
1832
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1814
1833
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1815
1834
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1816
1835
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1836
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1817
1837
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1818
1838
 
1819
1839
  header_params = {}
@@ -1899,10 +1919,11 @@ module Google
1899
1919
  # Customize the options with defaults
1900
1920
  metadata = @config.rpcs.update_google_channel_config.metadata.to_h
1901
1921
 
1902
- # Set x-goog-api-client and x-goog-user-project headers
1922
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1903
1923
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1904
1924
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1905
1925
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1926
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1906
1927
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1907
1928
 
1908
1929
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Eventarc
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 = "eventarc.$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::Eventarc::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
  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::Eventarc::V1::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::Eventarc::V1::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::Eventarc::V1::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::Eventarc::V1::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,
@@ -35,6 +35,9 @@ module Google
35
35
  # Google Cloud services and forward them to supported destinations.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "eventarc.$UNIVERSE_DOMAIN$"
40
43
 
@@ -254,12 +257,13 @@ module Google
254
257
  # Customize the options with defaults
255
258
  call_metadata = @config.rpcs.get_trigger.metadata.to_h
256
259
 
257
- # Set x-goog-api-client and x-goog-user-project headers
260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
258
261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
259
262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
260
263
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
261
264
  transports_version_send: [:rest]
262
265
 
266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  options.apply_defaults timeout: @config.rpcs.get_trigger.timeout,
@@ -355,12 +359,13 @@ module Google
355
359
  # Customize the options with defaults
356
360
  call_metadata = @config.rpcs.list_triggers.metadata.to_h
357
361
 
358
- # Set x-goog-api-client and x-goog-user-project headers
362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
359
363
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
360
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
361
365
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
362
366
  transports_version_send: [:rest]
363
367
 
368
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
364
369
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
365
370
 
366
371
  options.apply_defaults timeout: @config.rpcs.list_triggers.timeout,
@@ -447,12 +452,13 @@ module Google
447
452
  # Customize the options with defaults
448
453
  call_metadata = @config.rpcs.create_trigger.metadata.to_h
449
454
 
450
- # Set x-goog-api-client and x-goog-user-project headers
455
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
451
456
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
452
457
  lib_name: @config.lib_name, lib_version: @config.lib_version,
453
458
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
454
459
  transports_version_send: [:rest]
455
460
 
461
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
456
462
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
457
463
 
458
464
  options.apply_defaults timeout: @config.rpcs.create_trigger.timeout,
@@ -543,12 +549,13 @@ module Google
543
549
  # Customize the options with defaults
544
550
  call_metadata = @config.rpcs.update_trigger.metadata.to_h
545
551
 
546
- # Set x-goog-api-client and x-goog-user-project headers
552
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
547
553
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
548
554
  lib_name: @config.lib_name, lib_version: @config.lib_version,
549
555
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
550
556
  transports_version_send: [:rest]
551
557
 
558
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
552
559
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
553
560
 
554
561
  options.apply_defaults timeout: @config.rpcs.update_trigger.timeout,
@@ -638,12 +645,13 @@ module Google
638
645
  # Customize the options with defaults
639
646
  call_metadata = @config.rpcs.delete_trigger.metadata.to_h
640
647
 
641
- # Set x-goog-api-client and x-goog-user-project headers
648
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
642
649
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
643
650
  lib_name: @config.lib_name, lib_version: @config.lib_version,
644
651
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
645
652
  transports_version_send: [:rest]
646
653
 
654
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
647
655
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
648
656
 
649
657
  options.apply_defaults timeout: @config.rpcs.delete_trigger.timeout,
@@ -717,12 +725,13 @@ module Google
717
725
  # Customize the options with defaults
718
726
  call_metadata = @config.rpcs.get_channel.metadata.to_h
719
727
 
720
- # Set x-goog-api-client and x-goog-user-project headers
728
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
721
729
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
722
730
  lib_name: @config.lib_name, lib_version: @config.lib_version,
723
731
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
724
732
  transports_version_send: [:rest]
725
733
 
734
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
726
735
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
737
  options.apply_defaults timeout: @config.rpcs.get_channel.timeout,
@@ -814,12 +823,13 @@ module Google
814
823
  # Customize the options with defaults
815
824
  call_metadata = @config.rpcs.list_channels.metadata.to_h
816
825
 
817
- # Set x-goog-api-client and x-goog-user-project headers
826
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
818
827
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
819
828
  lib_name: @config.lib_name, lib_version: @config.lib_version,
820
829
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
821
830
  transports_version_send: [:rest]
822
831
 
832
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
823
833
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
824
834
 
825
835
  options.apply_defaults timeout: @config.rpcs.list_channels.timeout,
@@ -906,12 +916,13 @@ module Google
906
916
  # Customize the options with defaults
907
917
  call_metadata = @config.rpcs.create_channel.metadata.to_h
908
918
 
909
- # Set x-goog-api-client and x-goog-user-project headers
919
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
910
920
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
911
921
  lib_name: @config.lib_name, lib_version: @config.lib_version,
912
922
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
913
923
  transports_version_send: [:rest]
914
924
 
925
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
915
926
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
916
927
 
917
928
  options.apply_defaults timeout: @config.rpcs.create_channel.timeout,
@@ -999,12 +1010,13 @@ module Google
999
1010
  # Customize the options with defaults
1000
1011
  call_metadata = @config.rpcs.update_channel.metadata.to_h
1001
1012
 
1002
- # Set x-goog-api-client and x-goog-user-project headers
1013
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1003
1014
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1004
1015
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1005
1016
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1006
1017
  transports_version_send: [:rest]
1007
1018
 
1019
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1008
1020
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1009
1021
 
1010
1022
  options.apply_defaults timeout: @config.rpcs.update_channel.timeout,
@@ -1088,12 +1100,13 @@ module Google
1088
1100
  # Customize the options with defaults
1089
1101
  call_metadata = @config.rpcs.delete_channel.metadata.to_h
1090
1102
 
1091
- # 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
1092
1104
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1105
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1106
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1095
1107
  transports_version_send: [:rest]
1096
1108
 
1109
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1097
1110
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1098
1111
 
1099
1112
  options.apply_defaults timeout: @config.rpcs.delete_channel.timeout,
@@ -1167,12 +1180,13 @@ module Google
1167
1180
  # Customize the options with defaults
1168
1181
  call_metadata = @config.rpcs.get_provider.metadata.to_h
1169
1182
 
1170
- # Set x-goog-api-client and x-goog-user-project headers
1183
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1171
1184
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1172
1185
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1173
1186
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1174
1187
  transports_version_send: [:rest]
1175
1188
 
1189
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1176
1190
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1177
1191
 
1178
1192
  options.apply_defaults timeout: @config.rpcs.get_provider.timeout,
@@ -1264,12 +1278,13 @@ module Google
1264
1278
  # Customize the options with defaults
1265
1279
  call_metadata = @config.rpcs.list_providers.metadata.to_h
1266
1280
 
1267
- # Set x-goog-api-client and x-goog-user-project headers
1281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1268
1282
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1269
1283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1270
1284
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1271
1285
  transports_version_send: [:rest]
1272
1286
 
1287
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1273
1288
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1274
1289
 
1275
1290
  options.apply_defaults timeout: @config.rpcs.list_providers.timeout,
@@ -1342,12 +1357,13 @@ module Google
1342
1357
  # Customize the options with defaults
1343
1358
  call_metadata = @config.rpcs.get_channel_connection.metadata.to_h
1344
1359
 
1345
- # Set x-goog-api-client and x-goog-user-project headers
1360
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1346
1361
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1347
1362
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1348
1363
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1349
1364
  transports_version_send: [:rest]
1350
1365
 
1366
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1351
1367
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1352
1368
 
1353
1369
  options.apply_defaults timeout: @config.rpcs.get_channel_connection.timeout,
@@ -1434,12 +1450,13 @@ module Google
1434
1450
  # Customize the options with defaults
1435
1451
  call_metadata = @config.rpcs.list_channel_connections.metadata.to_h
1436
1452
 
1437
- # Set x-goog-api-client and x-goog-user-project headers
1453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1438
1454
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1439
1455
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1440
1456
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1441
1457
  transports_version_send: [:rest]
1442
1458
 
1459
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1443
1460
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1444
1461
 
1445
1462
  options.apply_defaults timeout: @config.rpcs.list_channel_connections.timeout,
@@ -1523,12 +1540,13 @@ module Google
1523
1540
  # Customize the options with defaults
1524
1541
  call_metadata = @config.rpcs.create_channel_connection.metadata.to_h
1525
1542
 
1526
- # Set x-goog-api-client and x-goog-user-project headers
1543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1527
1544
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1528
1545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1529
1546
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1530
1547
  transports_version_send: [:rest]
1531
1548
 
1549
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1532
1550
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1533
1551
 
1534
1552
  options.apply_defaults timeout: @config.rpcs.create_channel_connection.timeout,
@@ -1609,12 +1627,13 @@ module Google
1609
1627
  # Customize the options with defaults
1610
1628
  call_metadata = @config.rpcs.delete_channel_connection.metadata.to_h
1611
1629
 
1612
- # Set x-goog-api-client and x-goog-user-project headers
1630
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1613
1631
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1614
1632
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1615
1633
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1616
1634
  transports_version_send: [:rest]
1617
1635
 
1636
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1618
1637
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1619
1638
 
1620
1639
  options.apply_defaults timeout: @config.rpcs.delete_channel_connection.timeout,
@@ -1688,12 +1707,13 @@ module Google
1688
1707
  # Customize the options with defaults
1689
1708
  call_metadata = @config.rpcs.get_google_channel_config.metadata.to_h
1690
1709
 
1691
- # Set x-goog-api-client and x-goog-user-project headers
1710
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1692
1711
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1693
1712
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1694
1713
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1695
1714
  transports_version_send: [:rest]
1696
1715
 
1716
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1697
1717
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1698
1718
 
1699
1719
  options.apply_defaults timeout: @config.rpcs.get_google_channel_config.timeout,
@@ -1770,12 +1790,13 @@ module Google
1770
1790
  # Customize the options with defaults
1771
1791
  call_metadata = @config.rpcs.update_google_channel_config.metadata.to_h
1772
1792
 
1773
- # Set x-goog-api-client and x-goog-user-project headers
1793
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1774
1794
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1775
1795
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1776
1796
  gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
1777
1797
  transports_version_send: [:rest]
1778
1798
 
1799
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1779
1800
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1780
1801
 
1781
1802
  options.apply_defaults timeout: @config.rpcs.update_google_channel_config.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 = "eventarc.$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::Eventarc::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::Eventarc::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::Eventarc::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::Eventarc::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 Eventarc
23
23
  module V1
24
- VERSION = "0.10.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-eventarc-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.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-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common