google-cloud-datastream-v1 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36598770b50a65fb29783d987cb565e2ffecc292d3ac99095f34d9d82fb77bba
4
- data.tar.gz: 9f6885056dee1c916f9ea4b2409dbf13d12cfd474c134fd5ff2ced913aff18cc
3
+ metadata.gz: 4105b5357554fb4765c175936b3adba5c7f879ff7e2b60039bb80a1498fd5967
4
+ data.tar.gz: 9d9ef34e624724def9c5e1cb66cab8b75460ae687aedc9003472de06e4fa2ba1
5
5
  SHA512:
6
- metadata.gz: 576388a0280788f8c999325c8cc9c1911c93f0bfb3ef11e76c220e6d08485b7d20369d59617a50fe1f1262e820cc91fc294986d6afd6a58787420b5e0e4e4d57
7
- data.tar.gz: e3de121b48979f1a285f48f6f753a69a324a17aec96b776ee15df229f29fbc8c7b0a4747bd9985a1f0aa651ee92f591404f44f22f62a1fd74ddd5530a7e3cde7
6
+ metadata.gz: 52e71a29c3e702f83edd7b0c7882742620740e86e5f1c0e250d793dd5a874ae620e6589fe63c6ef393e676f919cd80d6bee7f7940ed8b03c2d9695b6a42ff684
7
+ data.tar.gz: 269addddacb4642a8396756686f99c6352d438c9bae5ce2069475f942dd8db0ce82ce5662fd21126e095d7c104400b557208e1e31a6ec14484e7fe8427cf2daa
@@ -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,
@@ -34,6 +34,9 @@ module Google
34
34
  # Datastream service
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "datastream.$UNIVERSE_DOMAIN$"
39
42
 
@@ -296,12 +299,13 @@ module Google
296
299
  # Customize the options with defaults
297
300
  call_metadata = @config.rpcs.list_connection_profiles.metadata.to_h
298
301
 
299
- # Set x-goog-api-client and x-goog-user-project headers
302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
300
303
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
301
304
  lib_name: @config.lib_name, lib_version: @config.lib_version,
302
305
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
303
306
  transports_version_send: [:rest]
304
307
 
308
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
305
309
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
310
 
307
311
  options.apply_defaults timeout: @config.rpcs.list_connection_profiles.timeout,
@@ -374,12 +378,13 @@ module Google
374
378
  # Customize the options with defaults
375
379
  call_metadata = @config.rpcs.get_connection_profile.metadata.to_h
376
380
 
377
- # Set x-goog-api-client and x-goog-user-project headers
381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
378
382
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
379
383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
380
384
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
381
385
  transports_version_send: [:rest]
382
386
 
387
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
388
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
389
 
385
390
  options.apply_defaults timeout: @config.rpcs.get_connection_profile.timeout,
@@ -482,12 +487,13 @@ module Google
482
487
  # Customize the options with defaults
483
488
  call_metadata = @config.rpcs.create_connection_profile.metadata.to_h
484
489
 
485
- # Set x-goog-api-client and x-goog-user-project headers
490
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
486
491
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
487
492
  lib_name: @config.lib_name, lib_version: @config.lib_version,
488
493
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
489
494
  transports_version_send: [:rest]
490
495
 
496
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
491
497
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
492
498
 
493
499
  options.apply_defaults timeout: @config.rpcs.create_connection_profile.timeout,
@@ -593,12 +599,13 @@ module Google
593
599
  # Customize the options with defaults
594
600
  call_metadata = @config.rpcs.update_connection_profile.metadata.to_h
595
601
 
596
- # Set x-goog-api-client and x-goog-user-project headers
602
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
597
603
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
598
604
  lib_name: @config.lib_name, lib_version: @config.lib_version,
599
605
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
600
606
  transports_version_send: [:rest]
601
607
 
608
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
602
609
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
603
610
 
604
611
  options.apply_defaults timeout: @config.rpcs.update_connection_profile.timeout,
@@ -693,12 +700,13 @@ module Google
693
700
  # Customize the options with defaults
694
701
  call_metadata = @config.rpcs.delete_connection_profile.metadata.to_h
695
702
 
696
- # Set x-goog-api-client and x-goog-user-project headers
703
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
697
704
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
698
705
  lib_name: @config.lib_name, lib_version: @config.lib_version,
699
706
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
700
707
  transports_version_send: [:rest]
701
708
 
709
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
702
710
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
703
711
 
704
712
  options.apply_defaults timeout: @config.rpcs.delete_connection_profile.timeout,
@@ -791,12 +799,13 @@ module Google
791
799
  # Customize the options with defaults
792
800
  call_metadata = @config.rpcs.discover_connection_profile.metadata.to_h
793
801
 
794
- # Set x-goog-api-client and x-goog-user-project headers
802
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
795
803
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
796
804
  lib_name: @config.lib_name, lib_version: @config.lib_version,
797
805
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
798
806
  transports_version_send: [:rest]
799
807
 
808
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
800
809
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
801
810
 
802
811
  options.apply_defaults timeout: @config.rpcs.discover_connection_profile.timeout,
@@ -887,12 +896,13 @@ module Google
887
896
  # Customize the options with defaults
888
897
  call_metadata = @config.rpcs.list_streams.metadata.to_h
889
898
 
890
- # Set x-goog-api-client and x-goog-user-project headers
899
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
891
900
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
901
  lib_name: @config.lib_name, lib_version: @config.lib_version,
893
902
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
894
903
  transports_version_send: [:rest]
895
904
 
905
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
896
906
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
897
907
 
898
908
  options.apply_defaults timeout: @config.rpcs.list_streams.timeout,
@@ -965,12 +975,13 @@ module Google
965
975
  # Customize the options with defaults
966
976
  call_metadata = @config.rpcs.get_stream.metadata.to_h
967
977
 
968
- # Set x-goog-api-client and x-goog-user-project headers
978
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
969
979
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
970
980
  lib_name: @config.lib_name, lib_version: @config.lib_version,
971
981
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
972
982
  transports_version_send: [:rest]
973
983
 
984
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
974
985
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
975
986
 
976
987
  options.apply_defaults timeout: @config.rpcs.get_stream.timeout,
@@ -1073,12 +1084,13 @@ module Google
1073
1084
  # Customize the options with defaults
1074
1085
  call_metadata = @config.rpcs.create_stream.metadata.to_h
1075
1086
 
1076
- # Set x-goog-api-client and x-goog-user-project headers
1087
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1077
1088
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1078
1089
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1079
1090
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1080
1091
  transports_version_send: [:rest]
1081
1092
 
1093
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1082
1094
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1083
1095
 
1084
1096
  options.apply_defaults timeout: @config.rpcs.create_stream.timeout,
@@ -1184,12 +1196,13 @@ module Google
1184
1196
  # Customize the options with defaults
1185
1197
  call_metadata = @config.rpcs.update_stream.metadata.to_h
1186
1198
 
1187
- # Set x-goog-api-client and x-goog-user-project headers
1199
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1188
1200
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1189
1201
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1190
1202
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1191
1203
  transports_version_send: [:rest]
1192
1204
 
1205
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1193
1206
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1194
1207
 
1195
1208
  options.apply_defaults timeout: @config.rpcs.update_stream.timeout,
@@ -1284,12 +1297,13 @@ module Google
1284
1297
  # Customize the options with defaults
1285
1298
  call_metadata = @config.rpcs.delete_stream.metadata.to_h
1286
1299
 
1287
- # Set x-goog-api-client and x-goog-user-project headers
1300
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1288
1301
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1289
1302
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1290
1303
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1291
1304
  transports_version_send: [:rest]
1292
1305
 
1306
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1293
1307
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1294
1308
 
1295
1309
  options.apply_defaults timeout: @config.rpcs.delete_stream.timeout,
@@ -1363,12 +1377,13 @@ module Google
1363
1377
  # Customize the options with defaults
1364
1378
  call_metadata = @config.rpcs.get_stream_object.metadata.to_h
1365
1379
 
1366
- # Set x-goog-api-client and x-goog-user-project headers
1380
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1367
1381
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1368
1382
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1369
1383
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1370
1384
  transports_version_send: [:rest]
1371
1385
 
1386
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1372
1387
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1373
1388
 
1374
1389
  options.apply_defaults timeout: @config.rpcs.get_stream_object.timeout,
@@ -1443,12 +1458,13 @@ module Google
1443
1458
  # Customize the options with defaults
1444
1459
  call_metadata = @config.rpcs.lookup_stream_object.metadata.to_h
1445
1460
 
1446
- # Set x-goog-api-client and x-goog-user-project headers
1461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1447
1462
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1448
1463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1449
1464
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1450
1465
  transports_version_send: [:rest]
1451
1466
 
1467
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1452
1468
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1453
1469
 
1454
1470
  options.apply_defaults timeout: @config.rpcs.lookup_stream_object.timeout,
@@ -1535,12 +1551,13 @@ module Google
1535
1551
  # Customize the options with defaults
1536
1552
  call_metadata = @config.rpcs.list_stream_objects.metadata.to_h
1537
1553
 
1538
- # 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
1539
1555
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1540
1556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1541
1557
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1542
1558
  transports_version_send: [:rest]
1543
1559
 
1560
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1544
1561
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1545
1562
 
1546
1563
  options.apply_defaults timeout: @config.rpcs.list_stream_objects.timeout,
@@ -1615,12 +1632,13 @@ module Google
1615
1632
  # Customize the options with defaults
1616
1633
  call_metadata = @config.rpcs.start_backfill_job.metadata.to_h
1617
1634
 
1618
- # Set x-goog-api-client and x-goog-user-project headers
1635
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1619
1636
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1620
1637
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1621
1638
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1622
1639
  transports_version_send: [:rest]
1623
1640
 
1641
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1624
1642
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1625
1643
 
1626
1644
  options.apply_defaults timeout: @config.rpcs.start_backfill_job.timeout,
@@ -1694,12 +1712,13 @@ module Google
1694
1712
  # Customize the options with defaults
1695
1713
  call_metadata = @config.rpcs.stop_backfill_job.metadata.to_h
1696
1714
 
1697
- # Set x-goog-api-client and x-goog-user-project headers
1715
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1698
1716
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1699
1717
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1700
1718
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1701
1719
  transports_version_send: [:rest]
1702
1720
 
1721
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1703
1722
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1704
1723
 
1705
1724
  options.apply_defaults timeout: @config.rpcs.stop_backfill_job.timeout,
@@ -1779,12 +1798,13 @@ module Google
1779
1798
  # Customize the options with defaults
1780
1799
  call_metadata = @config.rpcs.fetch_static_ips.metadata.to_h
1781
1800
 
1782
- # Set x-goog-api-client and x-goog-user-project headers
1801
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1783
1802
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1784
1803
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1785
1804
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1786
1805
  transports_version_send: [:rest]
1787
1806
 
1807
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1788
1808
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1789
1809
 
1790
1810
  options.apply_defaults timeout: @config.rpcs.fetch_static_ips.timeout,
@@ -1885,12 +1905,13 @@ module Google
1885
1905
  # Customize the options with defaults
1886
1906
  call_metadata = @config.rpcs.create_private_connection.metadata.to_h
1887
1907
 
1888
- # Set x-goog-api-client and x-goog-user-project headers
1908
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1889
1909
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1890
1910
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1891
1911
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1892
1912
  transports_version_send: [:rest]
1893
1913
 
1914
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1894
1915
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1895
1916
 
1896
1917
  options.apply_defaults timeout: @config.rpcs.create_private_connection.timeout,
@@ -1964,12 +1985,13 @@ module Google
1964
1985
  # Customize the options with defaults
1965
1986
  call_metadata = @config.rpcs.get_private_connection.metadata.to_h
1966
1987
 
1967
- # Set x-goog-api-client and x-goog-user-project headers
1988
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1968
1989
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1969
1990
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1970
1991
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
1971
1992
  transports_version_send: [:rest]
1972
1993
 
1994
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1973
1995
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1974
1996
 
1975
1997
  options.apply_defaults timeout: @config.rpcs.get_private_connection.timeout,
@@ -2064,12 +2086,13 @@ module Google
2064
2086
  # Customize the options with defaults
2065
2087
  call_metadata = @config.rpcs.list_private_connections.metadata.to_h
2066
2088
 
2067
- # Set x-goog-api-client and x-goog-user-project headers
2089
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2068
2090
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2069
2091
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2070
2092
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
2071
2093
  transports_version_send: [:rest]
2072
2094
 
2095
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2073
2096
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2074
2097
 
2075
2098
  options.apply_defaults timeout: @config.rpcs.list_private_connections.timeout,
@@ -2166,12 +2189,13 @@ module Google
2166
2189
  # Customize the options with defaults
2167
2190
  call_metadata = @config.rpcs.delete_private_connection.metadata.to_h
2168
2191
 
2169
- # Set x-goog-api-client and x-goog-user-project headers
2192
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2170
2193
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2171
2194
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2172
2195
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
2173
2196
  transports_version_send: [:rest]
2174
2197
 
2198
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2175
2199
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2176
2200
 
2177
2201
  options.apply_defaults timeout: @config.rpcs.delete_private_connection.timeout,
@@ -2271,12 +2295,13 @@ module Google
2271
2295
  # Customize the options with defaults
2272
2296
  call_metadata = @config.rpcs.create_route.metadata.to_h
2273
2297
 
2274
- # Set x-goog-api-client and x-goog-user-project headers
2298
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2275
2299
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2276
2300
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2277
2301
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
2278
2302
  transports_version_send: [:rest]
2279
2303
 
2304
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2280
2305
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2281
2306
 
2282
2307
  options.apply_defaults timeout: @config.rpcs.create_route.timeout,
@@ -2350,12 +2375,13 @@ module Google
2350
2375
  # Customize the options with defaults
2351
2376
  call_metadata = @config.rpcs.get_route.metadata.to_h
2352
2377
 
2353
- # Set x-goog-api-client and x-goog-user-project headers
2378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2354
2379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2355
2380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2356
2381
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
2357
2382
  transports_version_send: [:rest]
2358
2383
 
2384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2359
2385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2360
2386
 
2361
2387
  options.apply_defaults timeout: @config.rpcs.get_route.timeout,
@@ -2449,12 +2475,13 @@ module Google
2449
2475
  # Customize the options with defaults
2450
2476
  call_metadata = @config.rpcs.list_routes.metadata.to_h
2451
2477
 
2452
- # Set x-goog-api-client and x-goog-user-project headers
2478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2453
2479
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2454
2480
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2455
2481
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
2456
2482
  transports_version_send: [:rest]
2457
2483
 
2484
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2458
2485
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2459
2486
 
2460
2487
  options.apply_defaults timeout: @config.rpcs.list_routes.timeout,
@@ -2548,12 +2575,13 @@ module Google
2548
2575
  # Customize the options with defaults
2549
2576
  call_metadata = @config.rpcs.delete_route.metadata.to_h
2550
2577
 
2551
- # Set x-goog-api-client and x-goog-user-project headers
2578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2552
2579
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2553
2580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2554
2581
  gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
2555
2582
  transports_version_send: [:rest]
2556
2583
 
2584
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2557
2585
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2558
2586
 
2559
2587
  options.apply_defaults timeout: @config.rpcs.delete_route.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 = "datastream.$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::Datastream::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::Datastream::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::Datastream::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::Datastream::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 Datastream
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.10.1"
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
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - 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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastream-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common