google-cloud-datastream-v1 0.9.2 → 0.10.1

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: 548cf16f509798d07d84e03b4feb22df8e908b6544a72e342c46ca9837dccc58
4
- data.tar.gz: 254b28addce0c760549e03ebb8a2da73049343b17b134d4d8183414180e1774b
3
+ metadata.gz: 4105b5357554fb4765c175936b3adba5c7f879ff7e2b60039bb80a1498fd5967
4
+ data.tar.gz: 9d9ef34e624724def9c5e1cb66cab8b75460ae687aedc9003472de06e4fa2ba1
5
5
  SHA512:
6
- metadata.gz: 2f0a004f7fdb58fded1a47832e7df4bc833843e0dd06f2bba105cefb126c07f9b6d92b5fb23b92d960a7d6a09451268d8841b7d8cbb0e46f89396bd59d68abf0
7
- data.tar.gz: 6182ae00bef351e17d0da9733cfea54c0052d0663cb506bdbb2ff11ad6eca5362b14703a0e8575415759f8d4b5610fb049faa06560142847045f2e4926c0985b
6
+ metadata.gz: 52e71a29c3e702f83edd7b0c7882742620740e86e5f1c0e250d793dd5a874ae620e6589fe63c6ef393e676f919cd80d6bee7f7940ed8b03c2d9695b6a42ff684
7
+ data.tar.gz: 269addddacb4642a8396756686f99c6352d438c9bae5ce2069475f942dd8db0ce82ce5662fd21126e095d7c104400b557208e1e31a6ec14484e7fe8427cf2daa
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -32,6 +32,9 @@ module Google
32
32
  # Datastream service
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "datastream.$UNIVERSE_DOMAIN$"
37
40
 
@@ -303,10 +306,11 @@ module Google
303
306
  # Customize the options with defaults
304
307
  metadata = @config.rpcs.list_connection_profiles.metadata.to_h
305
308
 
306
- # Set x-goog-api-client and x-goog-user-project headers
309
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
307
310
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
308
311
  lib_name: @config.lib_name, lib_version: @config.lib_version,
309
312
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
313
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
310
314
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
311
315
 
312
316
  header_params = {}
@@ -389,10 +393,11 @@ module Google
389
393
  # Customize the options with defaults
390
394
  metadata = @config.rpcs.get_connection_profile.metadata.to_h
391
395
 
392
- # Set x-goog-api-client and x-goog-user-project headers
396
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
393
397
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
394
398
  lib_name: @config.lib_name, lib_version: @config.lib_version,
395
399
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
400
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
396
401
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
397
402
 
398
403
  header_params = {}
@@ -504,10 +509,11 @@ module Google
504
509
  # Customize the options with defaults
505
510
  metadata = @config.rpcs.create_connection_profile.metadata.to_h
506
511
 
507
- # Set x-goog-api-client and x-goog-user-project headers
512
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
508
513
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
509
514
  lib_name: @config.lib_name, lib_version: @config.lib_version,
510
515
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
516
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
511
517
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
512
518
 
513
519
  header_params = {}
@@ -622,10 +628,11 @@ module Google
622
628
  # Customize the options with defaults
623
629
  metadata = @config.rpcs.update_connection_profile.metadata.to_h
624
630
 
625
- # Set x-goog-api-client and x-goog-user-project headers
631
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
632
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
633
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
634
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
635
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
636
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
637
 
631
638
  header_params = {}
@@ -729,10 +736,11 @@ module Google
729
736
  # Customize the options with defaults
730
737
  metadata = @config.rpcs.delete_connection_profile.metadata.to_h
731
738
 
732
- # Set x-goog-api-client and x-goog-user-project headers
739
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
733
740
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
734
741
  lib_name: @config.lib_name, lib_version: @config.lib_version,
735
742
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
743
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
736
744
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
745
 
738
746
  header_params = {}
@@ -834,10 +842,11 @@ module Google
834
842
  # Customize the options with defaults
835
843
  metadata = @config.rpcs.discover_connection_profile.metadata.to_h
836
844
 
837
- # Set x-goog-api-client and x-goog-user-project headers
845
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
838
846
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
839
847
  lib_name: @config.lib_name, lib_version: @config.lib_version,
840
848
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
849
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
841
850
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
842
851
 
843
852
  header_params = {}
@@ -937,10 +946,11 @@ module Google
937
946
  # Customize the options with defaults
938
947
  metadata = @config.rpcs.list_streams.metadata.to_h
939
948
 
940
- # Set x-goog-api-client and x-goog-user-project headers
949
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
941
950
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
942
951
  lib_name: @config.lib_name, lib_version: @config.lib_version,
943
952
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
953
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
944
954
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
945
955
 
946
956
  header_params = {}
@@ -1023,10 +1033,11 @@ module Google
1023
1033
  # Customize the options with defaults
1024
1034
  metadata = @config.rpcs.get_stream.metadata.to_h
1025
1035
 
1026
- # Set x-goog-api-client and x-goog-user-project headers
1036
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1027
1037
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1028
1038
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1029
1039
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1040
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1030
1041
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1031
1042
 
1032
1043
  header_params = {}
@@ -1138,10 +1149,11 @@ module Google
1138
1149
  # Customize the options with defaults
1139
1150
  metadata = @config.rpcs.create_stream.metadata.to_h
1140
1151
 
1141
- # Set x-goog-api-client and x-goog-user-project headers
1152
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1142
1153
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1143
1154
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1144
1155
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1156
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1145
1157
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1146
1158
 
1147
1159
  header_params = {}
@@ -1256,10 +1268,11 @@ module Google
1256
1268
  # Customize the options with defaults
1257
1269
  metadata = @config.rpcs.update_stream.metadata.to_h
1258
1270
 
1259
- # Set x-goog-api-client and x-goog-user-project headers
1271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1260
1272
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1261
1273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1262
1274
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1275
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1263
1276
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1264
1277
 
1265
1278
  header_params = {}
@@ -1363,10 +1376,11 @@ module Google
1363
1376
  # Customize the options with defaults
1364
1377
  metadata = @config.rpcs.delete_stream.metadata.to_h
1365
1378
 
1366
- # Set x-goog-api-client and x-goog-user-project headers
1379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1367
1380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1368
1381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1369
1382
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1370
1384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1371
1385
 
1372
1386
  header_params = {}
@@ -1449,10 +1463,11 @@ module Google
1449
1463
  # Customize the options with defaults
1450
1464
  metadata = @config.rpcs.get_stream_object.metadata.to_h
1451
1465
 
1452
- # Set x-goog-api-client and x-goog-user-project headers
1466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1453
1467
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1454
1468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1455
1469
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1470
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1456
1471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1457
1472
 
1458
1473
  header_params = {}
@@ -1536,10 +1551,11 @@ module Google
1536
1551
  # Customize the options with defaults
1537
1552
  metadata = @config.rpcs.lookup_stream_object.metadata.to_h
1538
1553
 
1539
- # Set x-goog-api-client and x-goog-user-project headers
1554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1540
1555
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1541
1556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1542
1557
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1558
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1543
1559
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1544
1560
 
1545
1561
  header_params = {}
@@ -1635,10 +1651,11 @@ module Google
1635
1651
  # Customize the options with defaults
1636
1652
  metadata = @config.rpcs.list_stream_objects.metadata.to_h
1637
1653
 
1638
- # Set x-goog-api-client and x-goog-user-project headers
1654
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1639
1655
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1640
1656
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1641
1657
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1658
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1642
1659
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1643
1660
 
1644
1661
  header_params = {}
@@ -1722,10 +1739,11 @@ module Google
1722
1739
  # Customize the options with defaults
1723
1740
  metadata = @config.rpcs.start_backfill_job.metadata.to_h
1724
1741
 
1725
- # Set x-goog-api-client and x-goog-user-project headers
1742
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1726
1743
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1727
1744
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1728
1745
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1746
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1729
1747
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1730
1748
 
1731
1749
  header_params = {}
@@ -1808,10 +1826,11 @@ module Google
1808
1826
  # Customize the options with defaults
1809
1827
  metadata = @config.rpcs.stop_backfill_job.metadata.to_h
1810
1828
 
1811
- # Set x-goog-api-client and x-goog-user-project headers
1829
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1812
1830
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1813
1831
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1814
1832
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1833
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1815
1834
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1816
1835
 
1817
1836
  header_params = {}
@@ -1900,10 +1919,11 @@ module Google
1900
1919
  # Customize the options with defaults
1901
1920
  metadata = @config.rpcs.fetch_static_ips.metadata.to_h
1902
1921
 
1903
- # 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
1904
1923
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1905
1924
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1906
1925
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
1926
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1907
1927
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1908
1928
 
1909
1929
  header_params = {}
@@ -2012,10 +2032,11 @@ module Google
2012
2032
  # Customize the options with defaults
2013
2033
  metadata = @config.rpcs.create_private_connection.metadata.to_h
2014
2034
 
2015
- # Set x-goog-api-client and x-goog-user-project headers
2035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2016
2036
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2017
2037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2018
2038
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2039
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2019
2040
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2020
2041
 
2021
2042
  header_params = {}
@@ -2098,10 +2119,11 @@ module Google
2098
2119
  # Customize the options with defaults
2099
2120
  metadata = @config.rpcs.get_private_connection.metadata.to_h
2100
2121
 
2101
- # Set x-goog-api-client and x-goog-user-project headers
2122
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2102
2123
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2103
2124
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2104
2125
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2126
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2105
2127
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2106
2128
 
2107
2129
  header_params = {}
@@ -2205,10 +2227,11 @@ module Google
2205
2227
  # Customize the options with defaults
2206
2228
  metadata = @config.rpcs.list_private_connections.metadata.to_h
2207
2229
 
2208
- # Set x-goog-api-client and x-goog-user-project headers
2230
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2209
2231
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2210
2232
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2211
2233
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2234
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2212
2235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2213
2236
 
2214
2237
  header_params = {}
@@ -2315,10 +2338,11 @@ module Google
2315
2338
  # Customize the options with defaults
2316
2339
  metadata = @config.rpcs.delete_private_connection.metadata.to_h
2317
2340
 
2318
- # Set x-goog-api-client and x-goog-user-project headers
2341
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2319
2342
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2320
2343
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2321
2344
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2345
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2322
2346
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2323
2347
 
2324
2348
  header_params = {}
@@ -2427,10 +2451,11 @@ module Google
2427
2451
  # Customize the options with defaults
2428
2452
  metadata = @config.rpcs.create_route.metadata.to_h
2429
2453
 
2430
- # Set x-goog-api-client and x-goog-user-project headers
2454
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2431
2455
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2432
2456
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2433
2457
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2458
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2434
2459
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2435
2460
 
2436
2461
  header_params = {}
@@ -2513,10 +2538,11 @@ module Google
2513
2538
  # Customize the options with defaults
2514
2539
  metadata = @config.rpcs.get_route.metadata.to_h
2515
2540
 
2516
- # Set x-goog-api-client and x-goog-user-project headers
2541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2517
2542
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2518
2543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2519
2544
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2545
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2520
2546
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2521
2547
 
2522
2548
  header_params = {}
@@ -2619,10 +2645,11 @@ module Google
2619
2645
  # Customize the options with defaults
2620
2646
  metadata = @config.rpcs.list_routes.metadata.to_h
2621
2647
 
2622
- # Set x-goog-api-client and x-goog-user-project headers
2648
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2623
2649
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2624
2650
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2625
2651
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2652
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2626
2653
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2627
2654
 
2628
2655
  header_params = {}
@@ -2726,10 +2753,11 @@ module Google
2726
2753
  # Customize the options with defaults
2727
2754
  metadata = @config.rpcs.delete_route.metadata.to_h
2728
2755
 
2729
- # Set x-goog-api-client and x-goog-user-project headers
2756
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2730
2757
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2731
2758
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2732
2759
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION
2760
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2733
2761
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2734
2762
 
2735
2763
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Datastream
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 = "datastream.$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::Datastream::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::Datastream::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::Datastream::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::Datastream::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::Datastream::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,