google-cloud-automl-v1 0.10.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/automl/v1/automl/client.rb +39 -18
- data/lib/google/cloud/automl/v1/automl/operations.rb +13 -5
- data/lib/google/cloud/automl/v1/automl/rest/client.rb +39 -18
- data/lib/google/cloud/automl/v1/automl/rest/operations.rb +13 -5
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +7 -2
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +13 -5
- data/lib/google/cloud/automl/v1/prediction_service/rest/client.rb +7 -2
- data/lib/google/cloud/automl/v1/prediction_service/rest/operations.rb +13 -5
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9456e51b339a7c45a81d9ef10d16e34ac69dfae86df889ac319731a81b1f579f
|
4
|
+
data.tar.gz: 6b00792c6dc86e5ca3ce3a3ba671bff5a8df8ea73acbdaf390967dfa75b5a779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a08139b2909c7e869acd8341536b09627e6bccd85a89ac5feb4df929972328851fba1dacf33ce3ed18e9c3768d8ad13b59857209380c60c1eeb29d3e9db9ef61
|
7
|
+
data.tar.gz: f36d5fa9048fbf740823b8717d7dd03f483ecbd7b92519fffa7d6ecf9ef3f52b857d43eafd052a8aec557d4729d170cdee25cc2928ee08061f75162e82c4de6a
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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,
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -192,9 +196,26 @@ module Google
|
|
192
196
|
# @!attribute [rw] common
|
193
197
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
198
|
# Some settings.
|
199
|
+
# @!attribute [rw] experimental_features
|
200
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
201
|
+
# Experimental features to be included during client library generation.
|
195
202
|
class PythonSettings
|
196
203
|
include ::Google::Protobuf::MessageExts
|
197
204
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
|
206
|
+
# Experimental features to be included during client library generation.
|
207
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
208
|
+
# by default.
|
209
|
+
# @!attribute [rw] rest_async_io_enabled
|
210
|
+
# @return [::Boolean]
|
211
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
212
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
213
|
+
# This feature will be enabled by default 1 month after launching the
|
214
|
+
# feature in preview packages.
|
215
|
+
class ExperimentalFeatures
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
198
219
|
end
|
199
220
|
|
200
221
|
# Settings for Node client libraries.
|
@@ -286,6 +307,13 @@ module Google
|
|
286
307
|
# @return [::String]
|
287
308
|
# The fully qualified name of the method, for which the options below apply.
|
288
309
|
# This is used to find the method to apply the options.
|
310
|
+
#
|
311
|
+
# Example:
|
312
|
+
#
|
313
|
+
# publishing:
|
314
|
+
# method_settings:
|
315
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
316
|
+
# # method settings for CreateFolder...
|
289
317
|
# @!attribute [rw] long_running
|
290
318
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
319
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +322,14 @@ module Google
|
|
294
322
|
#
|
295
323
|
# Example of a YAML configuration::
|
296
324
|
#
|
297
|
-
#
|
298
|
-
#
|
325
|
+
# publishing:
|
326
|
+
# method_settings:
|
299
327
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
328
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
329
|
+
# initial_poll_delay: 60s # 1 minute
|
303
330
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
331
|
+
# max_poll_delay: 360s # 6 minutes
|
332
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
333
|
# @!attribute [rw] auto_populated_fields
|
309
334
|
# @return [::Array<::String>]
|
310
335
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +338,8 @@ module Google
|
|
313
338
|
#
|
314
339
|
# Example of a YAML configuration:
|
315
340
|
#
|
316
|
-
#
|
317
|
-
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
318
343
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
344
|
# auto_populated_fields:
|
320
345
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-automl-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|