google-cloud-automl-v1 0.10.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0833a6a89a6555c14f3e51153009beffed003395f233ad001bc30e77e38e82a6'
4
- data.tar.gz: e9b35f3f7f5921e8b55315f5cbb19134b3b03b2d6081bd733863f38567e8caad
3
+ metadata.gz: 3390a47702bbcf46f2ddd4718b0d79cf5b338b29694ce40c943aca4e824ba3f5
4
+ data.tar.gz: f0b1c032c5532c4b20ad50d6b3ea33ad3c27a1f70a1d21bf3e9927a0e73189a8
5
5
  SHA512:
6
- metadata.gz: 36412c0380fa9e98b6a395285944ab4b5f47a6b73896b05f99d42763985171cc0f9d29ff9b688213616973bc020cf0f553d848c2cb04e1d0a3af0908fb07bb6f
7
- data.tar.gz: 3d970097901faf6d3c5da816d6ada790cbbf58ebec7631495069011af08bccb65942d59dedc40156f0d35e052c9870c9075499d02c6ac49683e97b3a5fe42a37
6
+ metadata.gz: b35722bd55b9ca5a57133e938f0062b0abbe82ecb824742a57c530d060e132f2d4884ef0a427568194fb5e2ad8e55055a99bdd6ad8a62bda90bcdf056a4aab1b
7
+ data.tar.gz: 11a0ebbe2c640ea1e751f498ce9aa1025b99f54160dfbd9053e37d011e43a22c9df448d639211690b0b7b8ca87f76b03e74d0fe04b9449cca9d2363275bb2a6a
@@ -43,6 +43,9 @@ module Google
43
43
  # snake_case or dash-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
 
@@ -314,10 +317,11 @@ module Google
314
317
  # Customize the options with defaults
315
318
  metadata = @config.rpcs.create_dataset.metadata.to_h
316
319
 
317
- # Set x-goog-api-client and x-goog-user-project headers
320
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
318
321
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
319
322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
320
323
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
324
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
321
325
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
322
326
 
323
327
  header_params = {}
@@ -400,10 +404,11 @@ module Google
400
404
  # Customize the options with defaults
401
405
  metadata = @config.rpcs.get_dataset.metadata.to_h
402
406
 
403
- # Set x-goog-api-client and x-goog-user-project headers
407
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
404
408
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
405
409
  lib_name: @config.lib_name, lib_version: @config.lib_version,
406
410
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
411
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
407
412
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
408
413
 
409
414
  header_params = {}
@@ -505,10 +510,11 @@ module Google
505
510
  # Customize the options with defaults
506
511
  metadata = @config.rpcs.list_datasets.metadata.to_h
507
512
 
508
- # Set x-goog-api-client and x-goog-user-project headers
513
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
509
514
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
510
515
  lib_name: @config.lib_name, lib_version: @config.lib_version,
511
516
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
517
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
512
518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
519
 
514
520
  header_params = {}
@@ -593,10 +599,11 @@ module Google
593
599
  # Customize the options with defaults
594
600
  metadata = @config.rpcs.update_dataset.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
  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::AutoML::V1::VERSION
606
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
600
607
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
601
608
 
602
609
  header_params = {}
@@ -689,10 +696,11 @@ module Google
689
696
  # Customize the options with defaults
690
697
  metadata = @config.rpcs.delete_dataset.metadata.to_h
691
698
 
692
- # Set x-goog-api-client and x-goog-user-project headers
699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
693
700
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
694
701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
695
702
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
703
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
696
704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
697
705
 
698
706
  header_params = {}
@@ -794,10 +802,11 @@ module Google
794
802
  # Customize the options with defaults
795
803
  metadata = @config.rpcs.import_data.metadata.to_h
796
804
 
797
- # Set x-goog-api-client and x-goog-user-project headers
805
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
806
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
807
  lib_name: @config.lib_name, lib_version: @config.lib_version,
800
808
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
809
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
801
810
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
802
811
 
803
812
  header_params = {}
@@ -891,10 +900,11 @@ module Google
891
900
  # Customize the options with defaults
892
901
  metadata = @config.rpcs.export_data.metadata.to_h
893
902
 
894
- # Set x-goog-api-client and x-goog-user-project headers
903
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
895
904
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
896
905
  lib_name: @config.lib_name, lib_version: @config.lib_version,
897
906
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
907
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
898
908
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
899
909
 
900
910
  header_params = {}
@@ -977,10 +987,11 @@ module Google
977
987
  # Customize the options with defaults
978
988
  metadata = @config.rpcs.get_annotation_spec.metadata.to_h
979
989
 
980
- # Set x-goog-api-client and x-goog-user-project headers
990
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
981
991
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
982
992
  lib_name: @config.lib_name, lib_version: @config.lib_version,
983
993
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
994
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
984
995
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
985
996
 
986
997
  header_params = {}
@@ -1075,10 +1086,11 @@ module Google
1075
1086
  # Customize the options with defaults
1076
1087
  metadata = @config.rpcs.create_model.metadata.to_h
1077
1088
 
1078
- # Set x-goog-api-client and x-goog-user-project headers
1089
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1079
1090
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1080
1091
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1081
1092
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1093
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1082
1094
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1083
1095
 
1084
1096
  header_params = {}
@@ -1161,10 +1173,11 @@ module Google
1161
1173
  # Customize the options with defaults
1162
1174
  metadata = @config.rpcs.get_model.metadata.to_h
1163
1175
 
1164
- # Set x-goog-api-client and x-goog-user-project headers
1176
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1165
1177
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1166
1178
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1167
1179
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1180
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1168
1181
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1169
1182
 
1170
1183
  header_params = {}
@@ -1267,10 +1280,11 @@ module Google
1267
1280
  # Customize the options with defaults
1268
1281
  metadata = @config.rpcs.list_models.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::V1::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 = {}
@@ -1364,10 +1378,11 @@ module Google
1364
1378
  # Customize the options with defaults
1365
1379
  metadata = @config.rpcs.delete_model.metadata.to_h
1366
1380
 
1367
- # 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
1368
1382
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1369
1383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1370
1384
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1385
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1371
1386
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1372
1387
 
1373
1388
  header_params = {}
@@ -1452,10 +1467,11 @@ module Google
1452
1467
  # Customize the options with defaults
1453
1468
  metadata = @config.rpcs.update_model.metadata.to_h
1454
1469
 
1455
- # Set x-goog-api-client and x-goog-user-project headers
1470
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1456
1471
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1457
1472
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1458
1473
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1474
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1459
1475
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1460
1476
 
1461
1477
  header_params = {}
@@ -1558,10 +1574,11 @@ module Google
1558
1574
  # Customize the options with defaults
1559
1575
  metadata = @config.rpcs.deploy_model.metadata.to_h
1560
1576
 
1561
- # Set x-goog-api-client and x-goog-user-project headers
1577
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1562
1578
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1563
1579
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1564
1580
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1581
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1565
1582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1566
1583
 
1567
1584
  header_params = {}
@@ -1657,10 +1674,11 @@ module Google
1657
1674
  # Customize the options with defaults
1658
1675
  metadata = @config.rpcs.undeploy_model.metadata.to_h
1659
1676
 
1660
- # Set x-goog-api-client and x-goog-user-project headers
1677
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1661
1678
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1662
1679
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1663
1680
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1681
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1664
1682
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1665
1683
 
1666
1684
  header_params = {}
@@ -1758,10 +1776,11 @@ module Google
1758
1776
  # Customize the options with defaults
1759
1777
  metadata = @config.rpcs.export_model.metadata.to_h
1760
1778
 
1761
- # Set x-goog-api-client and x-goog-user-project headers
1779
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1762
1780
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1763
1781
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1764
1782
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1783
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1765
1784
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1766
1785
 
1767
1786
  header_params = {}
@@ -1844,10 +1863,11 @@ module Google
1844
1863
  # Customize the options with defaults
1845
1864
  metadata = @config.rpcs.get_model_evaluation.metadata.to_h
1846
1865
 
1847
- # Set x-goog-api-client and x-goog-user-project headers
1866
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1848
1867
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1849
1868
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1850
1869
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1870
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1851
1871
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1852
1872
 
1853
1873
  header_params = {}
@@ -1954,10 +1974,11 @@ module Google
1954
1974
  # Customize the options with defaults
1955
1975
  metadata = @config.rpcs.list_model_evaluations.metadata.to_h
1956
1976
 
1957
- # Set x-goog-api-client and x-goog-user-project headers
1977
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1958
1978
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1959
1979
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1960
1980
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
1981
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1961
1982
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1962
1983
 
1963
1984
  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::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::AutoML::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::AutoML::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::AutoML::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::AutoML::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
  header_params = {}
@@ -45,6 +45,9 @@ module Google
45
45
  # snake_case or dash-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
 
@@ -306,12 +309,13 @@ module Google
306
309
  # Customize the options with defaults
307
310
  call_metadata = @config.rpcs.create_dataset.metadata.to_h
308
311
 
309
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
310
313
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
311
314
  lib_name: @config.lib_name, lib_version: @config.lib_version,
312
315
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
313
316
  transports_version_send: [:rest]
314
317
 
318
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
315
319
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
316
320
 
317
321
  options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
@@ -385,12 +389,13 @@ module Google
385
389
  # Customize the options with defaults
386
390
  call_metadata = @config.rpcs.get_dataset.metadata.to_h
387
391
 
388
- # Set x-goog-api-client and x-goog-user-project headers
392
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
389
393
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
390
394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
391
395
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
392
396
  transports_version_send: [:rest]
393
397
 
398
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
394
399
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
395
400
 
396
401
  options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
@@ -483,12 +488,13 @@ module Google
483
488
  # Customize the options with defaults
484
489
  call_metadata = @config.rpcs.list_datasets.metadata.to_h
485
490
 
486
- # Set x-goog-api-client and x-goog-user-project headers
491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
487
492
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
488
493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
489
494
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
490
495
  transports_version_send: [:rest]
491
496
 
497
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
492
498
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
493
499
 
494
500
  options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
@@ -564,12 +570,13 @@ module Google
564
570
  # Customize the options with defaults
565
571
  call_metadata = @config.rpcs.update_dataset.metadata.to_h
566
572
 
567
- # Set x-goog-api-client and x-goog-user-project headers
573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
568
574
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
569
575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
570
576
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
571
577
  transports_version_send: [:rest]
572
578
 
579
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
580
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
581
 
575
582
  options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
@@ -653,12 +660,13 @@ module Google
653
660
  # Customize the options with defaults
654
661
  call_metadata = @config.rpcs.delete_dataset.metadata.to_h
655
662
 
656
- # Set x-goog-api-client and x-goog-user-project headers
663
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
657
664
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
665
  lib_name: @config.lib_name, lib_version: @config.lib_version,
659
666
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
660
667
  transports_version_send: [:rest]
661
668
 
669
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
662
670
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
663
671
 
664
672
  options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
@@ -751,12 +759,13 @@ module Google
751
759
  # Customize the options with defaults
752
760
  call_metadata = @config.rpcs.import_data.metadata.to_h
753
761
 
754
- # Set x-goog-api-client and x-goog-user-project headers
762
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
755
763
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
756
764
  lib_name: @config.lib_name, lib_version: @config.lib_version,
757
765
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
758
766
  transports_version_send: [:rest]
759
767
 
768
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
760
769
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
761
770
 
762
771
  options.apply_defaults timeout: @config.rpcs.import_data.timeout,
@@ -841,12 +850,13 @@ module Google
841
850
  # Customize the options with defaults
842
851
  call_metadata = @config.rpcs.export_data.metadata.to_h
843
852
 
844
- # Set x-goog-api-client and x-goog-user-project headers
853
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
845
854
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
846
855
  lib_name: @config.lib_name, lib_version: @config.lib_version,
847
856
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
848
857
  transports_version_send: [:rest]
849
858
 
859
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
850
860
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
851
861
 
852
862
  options.apply_defaults timeout: @config.rpcs.export_data.timeout,
@@ -920,12 +930,13 @@ module Google
920
930
  # Customize the options with defaults
921
931
  call_metadata = @config.rpcs.get_annotation_spec.metadata.to_h
922
932
 
923
- # Set x-goog-api-client and x-goog-user-project headers
933
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
924
934
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
925
935
  lib_name: @config.lib_name, lib_version: @config.lib_version,
926
936
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
927
937
  transports_version_send: [:rest]
928
938
 
939
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
929
940
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
930
941
 
931
942
  options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
@@ -1011,12 +1022,13 @@ module Google
1011
1022
  # Customize the options with defaults
1012
1023
  call_metadata = @config.rpcs.create_model.metadata.to_h
1013
1024
 
1014
- # Set x-goog-api-client and x-goog-user-project headers
1025
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1015
1026
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1016
1027
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1017
1028
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1018
1029
  transports_version_send: [:rest]
1019
1030
 
1031
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1020
1032
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1021
1033
 
1022
1034
  options.apply_defaults timeout: @config.rpcs.create_model.timeout,
@@ -1090,12 +1102,13 @@ module Google
1090
1102
  # Customize the options with defaults
1091
1103
  call_metadata = @config.rpcs.get_model.metadata.to_h
1092
1104
 
1093
- # Set x-goog-api-client and x-goog-user-project headers
1105
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1094
1106
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1095
1107
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1096
1108
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1097
1109
  transports_version_send: [:rest]
1098
1110
 
1111
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1099
1112
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1100
1113
 
1101
1114
  options.apply_defaults timeout: @config.rpcs.get_model.timeout,
@@ -1189,12 +1202,13 @@ module Google
1189
1202
  # Customize the options with defaults
1190
1203
  call_metadata = @config.rpcs.list_models.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::V1::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.list_models.timeout,
@@ -1279,12 +1293,13 @@ module Google
1279
1293
  # Customize the options with defaults
1280
1294
  call_metadata = @config.rpcs.delete_model.metadata.to_h
1281
1295
 
1282
- # Set x-goog-api-client and x-goog-user-project headers
1296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1283
1297
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1284
1298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1285
1299
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1286
1300
  transports_version_send: [:rest]
1287
1301
 
1302
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1288
1303
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1289
1304
 
1290
1305
  options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
@@ -1360,12 +1375,13 @@ module Google
1360
1375
  # Customize the options with defaults
1361
1376
  call_metadata = @config.rpcs.update_model.metadata.to_h
1362
1377
 
1363
- # Set x-goog-api-client and x-goog-user-project headers
1378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1364
1379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1365
1380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1366
1381
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1367
1382
  transports_version_send: [:rest]
1368
1383
 
1384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1369
1385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1370
1386
 
1371
1387
  options.apply_defaults timeout: @config.rpcs.update_model.timeout,
@@ -1459,12 +1475,13 @@ module Google
1459
1475
  # Customize the options with defaults
1460
1476
  call_metadata = @config.rpcs.deploy_model.metadata.to_h
1461
1477
 
1462
- # Set x-goog-api-client and x-goog-user-project headers
1478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1463
1479
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1464
1480
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1465
1481
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1466
1482
  transports_version_send: [:rest]
1467
1483
 
1484
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1468
1485
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1469
1486
 
1470
1487
  options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
@@ -1551,12 +1568,13 @@ module Google
1551
1568
  # Customize the options with defaults
1552
1569
  call_metadata = @config.rpcs.undeploy_model.metadata.to_h
1553
1570
 
1554
- # Set x-goog-api-client and x-goog-user-project headers
1571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1555
1572
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1556
1573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1557
1574
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1558
1575
  transports_version_send: [:rest]
1559
1576
 
1577
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1560
1578
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1561
1579
 
1562
1580
  options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
@@ -1645,12 +1663,13 @@ module Google
1645
1663
  # Customize the options with defaults
1646
1664
  call_metadata = @config.rpcs.export_model.metadata.to_h
1647
1665
 
1648
- # Set x-goog-api-client and x-goog-user-project headers
1666
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1649
1667
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1650
1668
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1651
1669
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1652
1670
  transports_version_send: [:rest]
1653
1671
 
1672
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1654
1673
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1655
1674
 
1656
1675
  options.apply_defaults timeout: @config.rpcs.export_model.timeout,
@@ -1724,12 +1743,13 @@ module Google
1724
1743
  # Customize the options with defaults
1725
1744
  call_metadata = @config.rpcs.get_model_evaluation.metadata.to_h
1726
1745
 
1727
- # Set x-goog-api-client and x-goog-user-project headers
1746
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1728
1747
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1729
1748
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1730
1749
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1731
1750
  transports_version_send: [:rest]
1732
1751
 
1752
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1733
1753
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1734
1754
 
1735
1755
  options.apply_defaults timeout: @config.rpcs.get_model_evaluation.timeout,
@@ -1827,12 +1847,13 @@ module Google
1827
1847
  # Customize the options with defaults
1828
1848
  call_metadata = @config.rpcs.list_model_evaluations.metadata.to_h
1829
1849
 
1830
- # Set x-goog-api-client and x-goog-user-project headers
1850
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1831
1851
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1832
1852
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1833
1853
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
1834
1854
  transports_version_send: [:rest]
1835
1855
 
1856
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1836
1857
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1837
1858
 
1838
1859
  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::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::AutoML::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::AutoML::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::AutoML::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,
@@ -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::V1::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 dash-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
 
@@ -305,10 +308,11 @@ module Google
305
308
  # Customize the options with defaults
306
309
  metadata = @config.rpcs.predict.metadata.to_h
307
310
 
308
- # Set x-goog-api-client and x-goog-user-project headers
311
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
312
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
313
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
314
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
315
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
312
316
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
317
 
314
318
  header_params = {}
@@ -500,10 +504,11 @@ module Google
500
504
  # Customize the options with defaults
501
505
  metadata = @config.rpcs.batch_predict.metadata.to_h
502
506
 
503
- # Set x-goog-api-client and x-goog-user-project headers
507
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
504
508
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
505
509
  lib_name: @config.lib_name, lib_version: @config.lib_version,
506
510
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION
511
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
507
512
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
508
513
 
509
514
  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::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::AutoML::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::AutoML::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::AutoML::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::AutoML::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
  header_params = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # snake_case or dash-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
 
@@ -297,12 +300,13 @@ module Google
297
300
  # Customize the options with defaults
298
301
  call_metadata = @config.rpcs.predict.metadata.to_h
299
302
 
300
- # Set x-goog-api-client and x-goog-user-project headers
303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
304
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
306
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
304
307
  transports_version_send: [:rest]
305
308
 
309
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
310
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
311
 
308
312
  options.apply_defaults timeout: @config.rpcs.predict.timeout,
@@ -485,12 +489,13 @@ module Google
485
489
  # Customize the options with defaults
486
490
  call_metadata = @config.rpcs.batch_predict.metadata.to_h
487
491
 
488
- # Set x-goog-api-client and x-goog-user-project headers
492
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
489
493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
490
494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
491
495
  gapic_version: ::Google::Cloud::AutoML::V1::VERSION,
492
496
  transports_version_send: [:rest]
493
497
 
498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
494
499
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
495
500
 
496
501
  options.apply_defaults timeout: @config.rpcs.batch_predict.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::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::AutoML::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::AutoML::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::AutoML::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,
@@ -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::V1::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AutoML
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-automl-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common