google-cloud-automl-v1beta1 0.10.2 → 0.11.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: c95431211fea9edfbeae3f52201815b3ed82367293d5d457038472ba885233a0
4
- data.tar.gz: 49899a4a7abf41000b2e252bb550a7d9fb729312f278cfd8416786583def3ca9
3
+ metadata.gz: a1fcf3c9bd2553e6d59b69f8a1b237bd2f9b7c69bbbfa5d34339a49d300420a1
4
+ data.tar.gz: fcdb4b58be3d090d2c17c2d4f0ae345e6ec75b007cd423049d9813c519a6c03a
5
5
  SHA512:
6
- metadata.gz: 798dc2ed559dfa6e23dc1aa21dcb3716fd302edf841e7dbd8a2c66c51ee2903da56b3cd0809fa5dd135bffd916e44b66621f6732793222aa8595f762a0e0a602
7
- data.tar.gz: 5af723f322538257411ac336c754bff24fbb63b5e5928206a2c7f637ee287e1703439320103838d5bfe15d257263d36ea8dab7c08dbd5e34d604c8dec37e3392
6
+ metadata.gz: a1cea43c8d15010f5e2979c1178bd5df813a4d08a47e1c50f6ab2a56e7ba346b095425e50b1e6acdf3c9bf8b958b76c535fc894d06719fad169e63bb1f7d32ed
7
+ data.tar.gz: e2a1cdf90a97fd2cba23f5d436262aefaed8d97846ff02cbd435f5173860ee7fb7a7482a678c6664e7faa277ac3e63ed6b04efea6dae7cd3206a57bc5d36e73b
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
@@ -43,6 +43,9 @@ module Google
43
43
  # snake_case or kebab-case, either of those cases is accepted.
44
44
  #
45
45
  class Client
46
+ # @private
47
+ API_VERSION = ""
48
+
46
49
  # @private
47
50
  DEFAULT_ENDPOINT_TEMPLATE = "automl.$UNIVERSE_DOMAIN$"
48
51
 
@@ -328,10 +331,11 @@ module Google
328
331
  # Customize the options with defaults
329
332
  metadata = @config.rpcs.create_dataset.metadata.to_h
330
333
 
331
- # Set x-goog-api-client and x-goog-user-project headers
334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
335
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
337
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
338
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
339
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
340
 
337
341
  header_params = {}
@@ -413,10 +417,11 @@ module Google
413
417
  # Customize the options with defaults
414
418
  metadata = @config.rpcs.get_dataset.metadata.to_h
415
419
 
416
- # Set x-goog-api-client and x-goog-user-project headers
420
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
417
421
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
418
422
  lib_name: @config.lib_name, lib_version: @config.lib_version,
419
423
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
424
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
420
425
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
421
426
 
422
427
  header_params = {}
@@ -519,10 +524,11 @@ module Google
519
524
  # Customize the options with defaults
520
525
  metadata = @config.rpcs.list_datasets.metadata.to_h
521
526
 
522
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
523
528
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
524
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
525
530
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
531
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
526
532
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
533
 
528
534
  header_params = {}
@@ -607,10 +613,11 @@ module Google
607
613
  # Customize the options with defaults
608
614
  metadata = @config.rpcs.update_dataset.metadata.to_h
609
615
 
610
- # Set x-goog-api-client and x-goog-user-project headers
616
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
617
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
619
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
620
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
614
621
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
622
 
616
623
  header_params = {}
@@ -703,10 +710,11 @@ module Google
703
710
  # Customize the options with defaults
704
711
  metadata = @config.rpcs.delete_dataset.metadata.to_h
705
712
 
706
- # Set x-goog-api-client and x-goog-user-project headers
713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
707
714
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
708
715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
709
716
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
717
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
718
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
719
 
712
720
  header_params = {}
@@ -808,10 +816,11 @@ module Google
808
816
  # Customize the options with defaults
809
817
  metadata = @config.rpcs.import_data.metadata.to_h
810
818
 
811
- # Set x-goog-api-client and x-goog-user-project headers
819
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
812
820
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
813
821
  lib_name: @config.lib_name, lib_version: @config.lib_version,
814
822
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
823
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
815
824
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
816
825
 
817
826
  header_params = {}
@@ -905,10 +914,11 @@ module Google
905
914
  # Customize the options with defaults
906
915
  metadata = @config.rpcs.export_data.metadata.to_h
907
916
 
908
- # Set x-goog-api-client and x-goog-user-project headers
917
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
909
918
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
910
919
  lib_name: @config.lib_name, lib_version: @config.lib_version,
911
920
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
921
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
912
922
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
913
923
 
914
924
  header_params = {}
@@ -991,10 +1001,11 @@ module Google
991
1001
  # Customize the options with defaults
992
1002
  metadata = @config.rpcs.get_annotation_spec.metadata.to_h
993
1003
 
994
- # Set x-goog-api-client and x-goog-user-project headers
1004
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
995
1005
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
996
1006
  lib_name: @config.lib_name, lib_version: @config.lib_version,
997
1007
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1008
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1009
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1010
 
1000
1011
  header_params = {}
@@ -1078,10 +1089,11 @@ module Google
1078
1089
  # Customize the options with defaults
1079
1090
  metadata = @config.rpcs.get_table_spec.metadata.to_h
1080
1091
 
1081
- # Set x-goog-api-client and x-goog-user-project headers
1092
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1082
1093
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
1094
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
1095
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1096
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1085
1097
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1086
1098
 
1087
1099
  header_params = {}
@@ -1179,10 +1191,11 @@ module Google
1179
1191
  # Customize the options with defaults
1180
1192
  metadata = @config.rpcs.list_table_specs.metadata.to_h
1181
1193
 
1182
- # Set x-goog-api-client and x-goog-user-project headers
1194
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1183
1195
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1184
1196
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1185
1197
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1198
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1186
1199
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1187
1200
 
1188
1201
  header_params = {}
@@ -1267,10 +1280,11 @@ module Google
1267
1280
  # Customize the options with defaults
1268
1281
  metadata = @config.rpcs.update_table_spec.metadata.to_h
1269
1282
 
1270
- # Set x-goog-api-client and x-goog-user-project headers
1283
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1271
1284
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1272
1285
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1273
1286
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1287
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1274
1288
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1275
1289
 
1276
1290
  header_params = {}
@@ -1354,10 +1368,11 @@ module Google
1354
1368
  # Customize the options with defaults
1355
1369
  metadata = @config.rpcs.get_column_spec.metadata.to_h
1356
1370
 
1357
- # Set x-goog-api-client and x-goog-user-project headers
1371
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1358
1372
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1359
1373
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1360
1374
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1375
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1361
1376
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1362
1377
 
1363
1378
  header_params = {}
@@ -1455,10 +1470,11 @@ module Google
1455
1470
  # Customize the options with defaults
1456
1471
  metadata = @config.rpcs.list_column_specs.metadata.to_h
1457
1472
 
1458
- # Set x-goog-api-client and x-goog-user-project headers
1473
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1459
1474
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1460
1475
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1461
1476
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1477
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1462
1478
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1463
1479
 
1464
1480
  header_params = {}
@@ -1543,10 +1559,11 @@ module Google
1543
1559
  # Customize the options with defaults
1544
1560
  metadata = @config.rpcs.update_column_spec.metadata.to_h
1545
1561
 
1546
- # Set x-goog-api-client and x-goog-user-project headers
1562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1547
1563
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1548
1564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1549
1565
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1566
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1550
1567
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1551
1568
 
1552
1569
  header_params = {}
@@ -1641,10 +1658,11 @@ module Google
1641
1658
  # Customize the options with defaults
1642
1659
  metadata = @config.rpcs.create_model.metadata.to_h
1643
1660
 
1644
- # Set x-goog-api-client and x-goog-user-project headers
1661
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1645
1662
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1646
1663
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1647
1664
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1665
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1648
1666
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1649
1667
 
1650
1668
  header_params = {}
@@ -1727,10 +1745,11 @@ module Google
1727
1745
  # Customize the options with defaults
1728
1746
  metadata = @config.rpcs.get_model.metadata.to_h
1729
1747
 
1730
- # Set x-goog-api-client and x-goog-user-project headers
1748
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1731
1749
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1732
1750
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1733
1751
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1752
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1734
1753
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1735
1754
 
1736
1755
  header_params = {}
@@ -1833,10 +1852,11 @@ module Google
1833
1852
  # Customize the options with defaults
1834
1853
  metadata = @config.rpcs.list_models.metadata.to_h
1835
1854
 
1836
- # Set x-goog-api-client and x-goog-user-project headers
1855
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1837
1856
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1838
1857
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1839
1858
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1859
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1840
1860
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1841
1861
 
1842
1862
  header_params = {}
@@ -1930,10 +1950,11 @@ module Google
1930
1950
  # Customize the options with defaults
1931
1951
  metadata = @config.rpcs.delete_model.metadata.to_h
1932
1952
 
1933
- # Set x-goog-api-client and x-goog-user-project headers
1953
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1934
1954
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1935
1955
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1936
1956
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1957
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1937
1958
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1938
1959
 
1939
1960
  header_params = {}
@@ -2038,10 +2059,11 @@ module Google
2038
2059
  # Customize the options with defaults
2039
2060
  metadata = @config.rpcs.deploy_model.metadata.to_h
2040
2061
 
2041
- # Set x-goog-api-client and x-goog-user-project headers
2062
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2042
2063
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2043
2064
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2044
2065
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2066
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2045
2067
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2046
2068
 
2047
2069
  header_params = {}
@@ -2137,10 +2159,11 @@ module Google
2137
2159
  # Customize the options with defaults
2138
2160
  metadata = @config.rpcs.undeploy_model.metadata.to_h
2139
2161
 
2140
- # Set x-goog-api-client and x-goog-user-project headers
2162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2141
2163
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2142
2164
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2143
2165
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2166
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2144
2167
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2145
2168
 
2146
2169
  header_params = {}
@@ -2239,10 +2262,11 @@ module Google
2239
2262
  # Customize the options with defaults
2240
2263
  metadata = @config.rpcs.export_model.metadata.to_h
2241
2264
 
2242
- # Set x-goog-api-client and x-goog-user-project headers
2265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2243
2266
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2244
2267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2245
2268
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2269
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2246
2270
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2247
2271
 
2248
2272
  header_params = {}
@@ -2348,10 +2372,11 @@ module Google
2348
2372
  # Customize the options with defaults
2349
2373
  metadata = @config.rpcs.export_evaluated_examples.metadata.to_h
2350
2374
 
2351
- # Set x-goog-api-client and x-goog-user-project headers
2375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2352
2376
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2353
2377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2354
2378
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2379
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2355
2380
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2356
2381
 
2357
2382
  header_params = {}
@@ -2434,10 +2459,11 @@ module Google
2434
2459
  # Customize the options with defaults
2435
2460
  metadata = @config.rpcs.get_model_evaluation.metadata.to_h
2436
2461
 
2437
- # Set x-goog-api-client and x-goog-user-project headers
2462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2438
2463
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2439
2464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2440
2465
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2466
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2441
2467
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2442
2468
 
2443
2469
  header_params = {}
@@ -2544,10 +2570,11 @@ module Google
2544
2570
  # Customize the options with defaults
2545
2571
  metadata = @config.rpcs.list_model_evaluations.metadata.to_h
2546
2572
 
2547
- # Set x-goog-api-client and x-goog-user-project headers
2573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2548
2574
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2549
2575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2550
2576
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2551
2578
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2552
2579
 
2553
2580
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module AutoML
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 = "automl.$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::AutoML::V1beta1::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::AutoML::V1beta1::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::AutoML::V1beta1::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::AutoML::V1beta1::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::AutoML::V1beta1::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
  header_params = {}