google-cloud-automl-v1beta1 0.10.2 → 0.11.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.
@@ -45,6 +45,9 @@ module Google
45
45
  # snake_case or kebab-case, either of those cases is accepted.
46
46
  #
47
47
  class Client
48
+ # @private
49
+ API_VERSION = ""
50
+
48
51
  # @private
49
52
  DEFAULT_ENDPOINT_TEMPLATE = "automl.$UNIVERSE_DOMAIN$"
50
53
 
@@ -320,12 +323,13 @@ module Google
320
323
  # Customize the options with defaults
321
324
  call_metadata = @config.rpcs.create_dataset.metadata.to_h
322
325
 
323
- # Set x-goog-api-client and x-goog-user-project headers
326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
324
327
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
325
328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
326
329
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
327
330
  transports_version_send: [:rest]
328
331
 
332
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
329
333
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
330
334
 
331
335
  options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
@@ -398,12 +402,13 @@ module Google
398
402
  # Customize the options with defaults
399
403
  call_metadata = @config.rpcs.get_dataset.metadata.to_h
400
404
 
401
- # Set x-goog-api-client and x-goog-user-project headers
405
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
402
406
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
403
407
  lib_name: @config.lib_name, lib_version: @config.lib_version,
404
408
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
405
409
  transports_version_send: [:rest]
406
410
 
411
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
407
412
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
408
413
 
409
414
  options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
@@ -497,12 +502,13 @@ module Google
497
502
  # Customize the options with defaults
498
503
  call_metadata = @config.rpcs.list_datasets.metadata.to_h
499
504
 
500
- # Set x-goog-api-client and x-goog-user-project headers
505
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
501
506
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
502
507
  lib_name: @config.lib_name, lib_version: @config.lib_version,
503
508
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
504
509
  transports_version_send: [:rest]
505
510
 
511
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
506
512
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
507
513
 
508
514
  options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
@@ -578,12 +584,13 @@ module Google
578
584
  # Customize the options with defaults
579
585
  call_metadata = @config.rpcs.update_dataset.metadata.to_h
580
586
 
581
- # Set x-goog-api-client and x-goog-user-project headers
587
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
582
588
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
583
589
  lib_name: @config.lib_name, lib_version: @config.lib_version,
584
590
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
585
591
  transports_version_send: [:rest]
586
592
 
593
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
587
594
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
588
595
 
589
596
  options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
@@ -667,12 +674,13 @@ module Google
667
674
  # Customize the options with defaults
668
675
  call_metadata = @config.rpcs.delete_dataset.metadata.to_h
669
676
 
670
- # Set x-goog-api-client and x-goog-user-project headers
677
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
671
678
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
672
679
  lib_name: @config.lib_name, lib_version: @config.lib_version,
673
680
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
674
681
  transports_version_send: [:rest]
675
682
 
683
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
676
684
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
677
685
 
678
686
  options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
@@ -765,12 +773,13 @@ module Google
765
773
  # Customize the options with defaults
766
774
  call_metadata = @config.rpcs.import_data.metadata.to_h
767
775
 
768
- # Set x-goog-api-client and x-goog-user-project headers
776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
769
777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
770
778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
771
779
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
772
780
  transports_version_send: [:rest]
773
781
 
782
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
774
783
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
775
784
 
776
785
  options.apply_defaults timeout: @config.rpcs.import_data.timeout,
@@ -855,12 +864,13 @@ module Google
855
864
  # Customize the options with defaults
856
865
  call_metadata = @config.rpcs.export_data.metadata.to_h
857
866
 
858
- # Set x-goog-api-client and x-goog-user-project headers
867
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
859
868
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
860
869
  lib_name: @config.lib_name, lib_version: @config.lib_version,
861
870
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
862
871
  transports_version_send: [:rest]
863
872
 
873
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
864
874
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
865
875
 
866
876
  options.apply_defaults timeout: @config.rpcs.export_data.timeout,
@@ -934,12 +944,13 @@ module Google
934
944
  # Customize the options with defaults
935
945
  call_metadata = @config.rpcs.get_annotation_spec.metadata.to_h
936
946
 
937
- # Set x-goog-api-client and x-goog-user-project headers
947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
938
948
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
939
949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
940
950
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
941
951
  transports_version_send: [:rest]
942
952
 
953
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
943
954
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
944
955
 
945
956
  options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
@@ -1014,12 +1025,13 @@ module Google
1014
1025
  # Customize the options with defaults
1015
1026
  call_metadata = @config.rpcs.get_table_spec.metadata.to_h
1016
1027
 
1017
- # Set x-goog-api-client and x-goog-user-project headers
1028
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1018
1029
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1019
1030
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1020
1031
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1021
1032
  transports_version_send: [:rest]
1022
1033
 
1034
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1023
1035
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1024
1036
 
1025
1037
  options.apply_defaults timeout: @config.rpcs.get_table_spec.timeout,
@@ -1108,12 +1120,13 @@ module Google
1108
1120
  # Customize the options with defaults
1109
1121
  call_metadata = @config.rpcs.list_table_specs.metadata.to_h
1110
1122
 
1111
- # Set x-goog-api-client and x-goog-user-project headers
1123
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1112
1124
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1113
1125
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1114
1126
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1115
1127
  transports_version_send: [:rest]
1116
1128
 
1129
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1117
1130
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1118
1131
 
1119
1132
  options.apply_defaults timeout: @config.rpcs.list_table_specs.timeout,
@@ -1189,12 +1202,13 @@ module Google
1189
1202
  # Customize the options with defaults
1190
1203
  call_metadata = @config.rpcs.update_table_spec.metadata.to_h
1191
1204
 
1192
- # Set x-goog-api-client and x-goog-user-project headers
1205
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1193
1206
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1194
1207
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1195
1208
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1196
1209
  transports_version_send: [:rest]
1197
1210
 
1211
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1198
1212
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
1213
 
1200
1214
  options.apply_defaults timeout: @config.rpcs.update_table_spec.timeout,
@@ -1269,12 +1283,13 @@ module Google
1269
1283
  # Customize the options with defaults
1270
1284
  call_metadata = @config.rpcs.get_column_spec.metadata.to_h
1271
1285
 
1272
- # Set x-goog-api-client and x-goog-user-project headers
1286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1273
1287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1274
1288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1275
1289
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1276
1290
  transports_version_send: [:rest]
1277
1291
 
1292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1278
1293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1279
1294
 
1280
1295
  options.apply_defaults timeout: @config.rpcs.get_column_spec.timeout,
@@ -1363,12 +1378,13 @@ module Google
1363
1378
  # Customize the options with defaults
1364
1379
  call_metadata = @config.rpcs.list_column_specs.metadata.to_h
1365
1380
 
1366
- # Set x-goog-api-client and x-goog-user-project headers
1381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1367
1382
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1368
1383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1369
1384
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1370
1385
  transports_version_send: [:rest]
1371
1386
 
1387
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1372
1388
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1373
1389
 
1374
1390
  options.apply_defaults timeout: @config.rpcs.list_column_specs.timeout,
@@ -1444,12 +1460,13 @@ module Google
1444
1460
  # Customize the options with defaults
1445
1461
  call_metadata = @config.rpcs.update_column_spec.metadata.to_h
1446
1462
 
1447
- # Set x-goog-api-client and x-goog-user-project headers
1463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1448
1464
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1449
1465
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1450
1466
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1451
1467
  transports_version_send: [:rest]
1452
1468
 
1469
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1453
1470
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1454
1471
 
1455
1472
  options.apply_defaults timeout: @config.rpcs.update_column_spec.timeout,
@@ -1535,12 +1552,13 @@ module Google
1535
1552
  # Customize the options with defaults
1536
1553
  call_metadata = @config.rpcs.create_model.metadata.to_h
1537
1554
 
1538
- # Set x-goog-api-client and x-goog-user-project headers
1555
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1539
1556
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1540
1557
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1541
1558
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1542
1559
  transports_version_send: [:rest]
1543
1560
 
1561
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1544
1562
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1545
1563
 
1546
1564
  options.apply_defaults timeout: @config.rpcs.create_model.timeout,
@@ -1614,12 +1632,13 @@ module Google
1614
1632
  # Customize the options with defaults
1615
1633
  call_metadata = @config.rpcs.get_model.metadata.to_h
1616
1634
 
1617
- # 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
1618
1636
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1619
1637
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1620
1638
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1621
1639
  transports_version_send: [:rest]
1622
1640
 
1641
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1623
1642
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1624
1643
 
1625
1644
  options.apply_defaults timeout: @config.rpcs.get_model.timeout,
@@ -1713,12 +1732,13 @@ module Google
1713
1732
  # Customize the options with defaults
1714
1733
  call_metadata = @config.rpcs.list_models.metadata.to_h
1715
1734
 
1716
- # Set x-goog-api-client and x-goog-user-project headers
1735
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1717
1736
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1718
1737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1719
1738
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1720
1739
  transports_version_send: [:rest]
1721
1740
 
1741
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1722
1742
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1723
1743
 
1724
1744
  options.apply_defaults timeout: @config.rpcs.list_models.timeout,
@@ -1803,12 +1823,13 @@ module Google
1803
1823
  # Customize the options with defaults
1804
1824
  call_metadata = @config.rpcs.delete_model.metadata.to_h
1805
1825
 
1806
- # Set x-goog-api-client and x-goog-user-project headers
1826
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1807
1827
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1808
1828
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1809
1829
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1810
1830
  transports_version_send: [:rest]
1811
1831
 
1832
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1812
1833
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1813
1834
 
1814
1835
  options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
@@ -1904,12 +1925,13 @@ module Google
1904
1925
  # Customize the options with defaults
1905
1926
  call_metadata = @config.rpcs.deploy_model.metadata.to_h
1906
1927
 
1907
- # Set x-goog-api-client and x-goog-user-project headers
1928
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1908
1929
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1909
1930
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1910
1931
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
1911
1932
  transports_version_send: [:rest]
1912
1933
 
1934
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1913
1935
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1914
1936
 
1915
1937
  options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
@@ -1996,12 +2018,13 @@ module Google
1996
2018
  # Customize the options with defaults
1997
2019
  call_metadata = @config.rpcs.undeploy_model.metadata.to_h
1998
2020
 
1999
- # Set x-goog-api-client and x-goog-user-project headers
2021
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2000
2022
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2001
2023
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2002
2024
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
2003
2025
  transports_version_send: [:rest]
2004
2026
 
2027
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2005
2028
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2006
2029
 
2007
2030
  options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
@@ -2091,12 +2114,13 @@ module Google
2091
2114
  # Customize the options with defaults
2092
2115
  call_metadata = @config.rpcs.export_model.metadata.to_h
2093
2116
 
2094
- # Set x-goog-api-client and x-goog-user-project headers
2117
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2095
2118
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2096
2119
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2097
2120
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
2098
2121
  transports_version_send: [:rest]
2099
2122
 
2123
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2100
2124
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2101
2125
 
2102
2126
  options.apply_defaults timeout: @config.rpcs.export_model.timeout,
@@ -2193,12 +2217,13 @@ module Google
2193
2217
  # Customize the options with defaults
2194
2218
  call_metadata = @config.rpcs.export_evaluated_examples.metadata.to_h
2195
2219
 
2196
- # Set x-goog-api-client and x-goog-user-project headers
2220
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2197
2221
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2198
2222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2199
2223
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
2200
2224
  transports_version_send: [:rest]
2201
2225
 
2226
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2202
2227
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2203
2228
 
2204
2229
  options.apply_defaults timeout: @config.rpcs.export_evaluated_examples.timeout,
@@ -2272,12 +2297,13 @@ module Google
2272
2297
  # Customize the options with defaults
2273
2298
  call_metadata = @config.rpcs.get_model_evaluation.metadata.to_h
2274
2299
 
2275
- # Set x-goog-api-client and x-goog-user-project headers
2300
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2276
2301
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2277
2302
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2278
2303
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
2279
2304
  transports_version_send: [:rest]
2280
2305
 
2306
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2281
2307
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2282
2308
 
2283
2309
  options.apply_defaults timeout: @config.rpcs.get_model_evaluation.timeout,
@@ -2375,12 +2401,13 @@ module Google
2375
2401
  # Customize the options with defaults
2376
2402
  call_metadata = @config.rpcs.list_model_evaluations.metadata.to_h
2377
2403
 
2378
- # Set x-goog-api-client and x-goog-user-project headers
2404
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2379
2405
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2380
2406
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2381
2407
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
2382
2408
  transports_version_send: [:rest]
2383
2409
 
2410
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2384
2411
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2385
2412
 
2386
2413
  options.apply_defaults timeout: @config.rpcs.list_model_evaluations.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 = "automl.$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::AutoML::V1beta1::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::AutoML::V1beta1::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::AutoML::V1beta1::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::AutoML::V1beta1::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,
@@ -535,12 +542,13 @@ module Google
535
542
  # Customize the options with defaults
536
543
  call_metadata = @config.rpcs.wait_operation.metadata.to_h
537
544
 
538
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
539
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
548
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
542
549
  transports_version_send: [:rest]
543
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
553
 
546
554
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # snake_case or kebab-case, either of those cases is accepted.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "automl.$UNIVERSE_DOMAIN$"
38
41
 
@@ -278,10 +281,11 @@ module Google
278
281
  # Customize the options with defaults
279
282
  metadata = @config.rpcs.predict.metadata.to_h
280
283
 
281
- # Set x-goog-api-client and x-goog-user-project headers
284
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
282
285
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
283
286
  lib_name: @config.lib_name, lib_version: @config.lib_version,
284
287
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
288
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
285
289
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
286
290
 
287
291
  header_params = {}
@@ -457,10 +461,11 @@ module Google
457
461
  # Customize the options with defaults
458
462
  metadata = @config.rpcs.batch_predict.metadata.to_h
459
463
 
460
- # Set x-goog-api-client and x-goog-user-project headers
464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
461
465
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
462
466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
463
467
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
468
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
464
469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
465
470
 
466
471
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module PredictionService
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 = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # snake_case or kebab-case, either of those cases is accepted.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "automl.$UNIVERSE_DOMAIN$"
40
43
 
@@ -270,12 +273,13 @@ module Google
270
273
  # Customize the options with defaults
271
274
  call_metadata = @config.rpcs.predict.metadata.to_h
272
275
 
273
- # 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
274
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
279
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
277
280
  transports_version_send: [:rest]
278
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
279
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
284
 
281
285
  options.apply_defaults timeout: @config.rpcs.predict.timeout,
@@ -442,12 +446,13 @@ module Google
442
446
  # Customize the options with defaults
443
447
  call_metadata = @config.rpcs.batch_predict.metadata.to_h
444
448
 
445
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
446
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
447
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
448
452
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION,
449
453
  transports_version_send: [:rest]
450
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
451
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
452
457
 
453
458
  options.apply_defaults timeout: @config.rpcs.batch_predict.timeout,