google-cloud-artifact_registry-v1 0.12.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +75 -36
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +13 -5
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +75 -36
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +11 -4
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/apt_artifact_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/artifact_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/file_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/package_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/vpcsc_config_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/yum_artifact_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0712232935e2a895e14a62231f3aa897f45d621d60d6d792d076025eba3c834a'
|
4
|
+
data.tar.gz: bf2f0d5bc1da394b2abde2e20e282283201f35ae3ad7095f7f284bdac59b3d14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77321ddf62e7281491f3358bcff46c6e76c7bd6eac5de8eae8d25edaf7a057ad33f41854af043182f02b33a912e93eeabded9040eda271d00b24bb8acaa4077c
|
7
|
+
data.tar.gz: f53be956f70854a3f87bcd2c611105e285269216d3dd3052b858e4f19a8fbc8ba8554af8fc9729c5a29d340c857315ddd2832af4f5d1f2caa3bd05c75d17564b
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -43,6 +43,9 @@ module Google
|
|
43
43
|
# or Version.
|
44
44
|
#
|
45
45
|
class Client
|
46
|
+
# @private
|
47
|
+
API_VERSION = ""
|
48
|
+
|
46
49
|
# @private
|
47
50
|
DEFAULT_ENDPOINT_TEMPLATE = "artifactregistry.$UNIVERSE_DOMAIN$"
|
48
51
|
|
@@ -269,10 +272,11 @@ module Google
|
|
269
272
|
# Customize the options with defaults
|
270
273
|
metadata = @config.rpcs.list_docker_images.metadata.to_h
|
271
274
|
|
272
|
-
# Set x-goog-api-client
|
275
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
276
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
277
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
278
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
279
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
276
280
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
277
281
|
|
278
282
|
header_params = {}
|
@@ -355,10 +359,11 @@ module Google
|
|
355
359
|
# Customize the options with defaults
|
356
360
|
metadata = @config.rpcs.get_docker_image.metadata.to_h
|
357
361
|
|
358
|
-
# Set x-goog-api-client
|
362
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
359
363
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
360
364
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
361
365
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
366
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
362
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
363
368
|
|
364
369
|
header_params = {}
|
@@ -449,10 +454,11 @@ module Google
|
|
449
454
|
# Customize the options with defaults
|
450
455
|
metadata = @config.rpcs.list_maven_artifacts.metadata.to_h
|
451
456
|
|
452
|
-
# Set x-goog-api-client
|
457
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
453
458
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
454
459
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
455
460
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
461
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
456
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
457
463
|
|
458
464
|
header_params = {}
|
@@ -535,10 +541,11 @@ module Google
|
|
535
541
|
# Customize the options with defaults
|
536
542
|
metadata = @config.rpcs.get_maven_artifact.metadata.to_h
|
537
543
|
|
538
|
-
# Set x-goog-api-client
|
544
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
539
545
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
540
546
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
541
547
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
548
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
542
549
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
543
550
|
|
544
551
|
header_params = {}
|
@@ -629,10 +636,11 @@ module Google
|
|
629
636
|
# Customize the options with defaults
|
630
637
|
metadata = @config.rpcs.list_npm_packages.metadata.to_h
|
631
638
|
|
632
|
-
# Set x-goog-api-client
|
639
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
633
640
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
634
641
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
635
642
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
643
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
636
644
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
637
645
|
|
638
646
|
header_params = {}
|
@@ -715,10 +723,11 @@ module Google
|
|
715
723
|
# Customize the options with defaults
|
716
724
|
metadata = @config.rpcs.get_npm_package.metadata.to_h
|
717
725
|
|
718
|
-
# Set x-goog-api-client
|
726
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
719
727
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
720
728
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
721
729
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
730
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
722
731
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
723
732
|
|
724
733
|
header_params = {}
|
@@ -809,10 +818,11 @@ module Google
|
|
809
818
|
# Customize the options with defaults
|
810
819
|
metadata = @config.rpcs.list_python_packages.metadata.to_h
|
811
820
|
|
812
|
-
# Set x-goog-api-client
|
821
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
813
822
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
814
823
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
815
824
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
825
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
816
826
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
817
827
|
|
818
828
|
header_params = {}
|
@@ -895,10 +905,11 @@ module Google
|
|
895
905
|
# Customize the options with defaults
|
896
906
|
metadata = @config.rpcs.get_python_package.metadata.to_h
|
897
907
|
|
898
|
-
# Set x-goog-api-client
|
908
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
899
909
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
900
910
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
901
911
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
912
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
902
913
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
903
914
|
|
904
915
|
header_params = {}
|
@@ -992,10 +1003,11 @@ module Google
|
|
992
1003
|
# Customize the options with defaults
|
993
1004
|
metadata = @config.rpcs.import_apt_artifacts.metadata.to_h
|
994
1005
|
|
995
|
-
# Set x-goog-api-client
|
1006
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
996
1007
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
997
1008
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
998
1009
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1010
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
999
1011
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1000
1012
|
|
1001
1013
|
header_params = {}
|
@@ -1090,10 +1102,11 @@ module Google
|
|
1090
1102
|
# Customize the options with defaults
|
1091
1103
|
metadata = @config.rpcs.import_yum_artifacts.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
|
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::ArtifactRegistry::V1::VERSION
|
1109
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1097
1110
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1098
1111
|
|
1099
1112
|
header_params = {}
|
@@ -1185,10 +1198,11 @@ module Google
|
|
1185
1198
|
# Customize the options with defaults
|
1186
1199
|
metadata = @config.rpcs.list_repositories.metadata.to_h
|
1187
1200
|
|
1188
|
-
# Set x-goog-api-client
|
1201
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1189
1202
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1190
1203
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1191
1204
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1205
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1192
1206
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1193
1207
|
|
1194
1208
|
header_params = {}
|
@@ -1271,10 +1285,11 @@ module Google
|
|
1271
1285
|
# Customize the options with defaults
|
1272
1286
|
metadata = @config.rpcs.get_repository.metadata.to_h
|
1273
1287
|
|
1274
|
-
# Set x-goog-api-client
|
1288
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1275
1289
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1276
1290
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1277
1291
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1292
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1278
1293
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1279
1294
|
|
1280
1295
|
header_params = {}
|
@@ -1369,10 +1384,11 @@ module Google
|
|
1369
1384
|
# Customize the options with defaults
|
1370
1385
|
metadata = @config.rpcs.create_repository.metadata.to_h
|
1371
1386
|
|
1372
|
-
# Set x-goog-api-client
|
1387
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1373
1388
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1374
1389
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1375
1390
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1391
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1376
1392
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1377
1393
|
|
1378
1394
|
header_params = {}
|
@@ -1459,10 +1475,11 @@ module Google
|
|
1459
1475
|
# Customize the options with defaults
|
1460
1476
|
metadata = @config.rpcs.update_repository.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
|
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::ArtifactRegistry::V1::VERSION
|
1482
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1466
1483
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1467
1484
|
|
1468
1485
|
header_params = {}
|
@@ -1553,10 +1570,11 @@ module Google
|
|
1553
1570
|
# Customize the options with defaults
|
1554
1571
|
metadata = @config.rpcs.delete_repository.metadata.to_h
|
1555
1572
|
|
1556
|
-
# Set x-goog-api-client
|
1573
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1557
1574
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1558
1575
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1559
1576
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1577
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1560
1578
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1561
1579
|
|
1562
1580
|
header_params = {}
|
@@ -1647,10 +1665,11 @@ module Google
|
|
1647
1665
|
# Customize the options with defaults
|
1648
1666
|
metadata = @config.rpcs.list_packages.metadata.to_h
|
1649
1667
|
|
1650
|
-
# Set x-goog-api-client
|
1668
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1651
1669
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1652
1670
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1653
1671
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1672
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1654
1673
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1655
1674
|
|
1656
1675
|
header_params = {}
|
@@ -1733,10 +1752,11 @@ module Google
|
|
1733
1752
|
# Customize the options with defaults
|
1734
1753
|
metadata = @config.rpcs.get_package.metadata.to_h
|
1735
1754
|
|
1736
|
-
# Set x-goog-api-client
|
1755
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1737
1756
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1738
1757
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1739
1758
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1759
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1740
1760
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1741
1761
|
|
1742
1762
|
header_params = {}
|
@@ -1826,10 +1846,11 @@ module Google
|
|
1826
1846
|
# Customize the options with defaults
|
1827
1847
|
metadata = @config.rpcs.delete_package.metadata.to_h
|
1828
1848
|
|
1829
|
-
# Set x-goog-api-client
|
1849
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1830
1850
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1831
1851
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1832
1852
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1853
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1833
1854
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1834
1855
|
|
1835
1856
|
header_params = {}
|
@@ -1924,10 +1945,11 @@ module Google
|
|
1924
1945
|
# Customize the options with defaults
|
1925
1946
|
metadata = @config.rpcs.list_versions.metadata.to_h
|
1926
1947
|
|
1927
|
-
# Set x-goog-api-client
|
1948
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1928
1949
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1929
1950
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1930
1951
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
1952
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1931
1953
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1932
1954
|
|
1933
1955
|
header_params = {}
|
@@ -2012,10 +2034,11 @@ module Google
|
|
2012
2034
|
# Customize the options with defaults
|
2013
2035
|
metadata = @config.rpcs.get_version.metadata.to_h
|
2014
2036
|
|
2015
|
-
# Set x-goog-api-client
|
2037
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2016
2038
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2017
2039
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2018
2040
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2041
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2019
2042
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2020
2043
|
|
2021
2044
|
header_params = {}
|
@@ -2108,10 +2131,11 @@ module Google
|
|
2108
2131
|
# Customize the options with defaults
|
2109
2132
|
metadata = @config.rpcs.delete_version.metadata.to_h
|
2110
2133
|
|
2111
|
-
# Set x-goog-api-client
|
2134
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2112
2135
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2113
2136
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2114
2137
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2138
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2115
2139
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2116
2140
|
|
2117
2141
|
header_params = {}
|
@@ -2207,10 +2231,11 @@ module Google
|
|
2207
2231
|
# Customize the options with defaults
|
2208
2232
|
metadata = @config.rpcs.batch_delete_versions.metadata.to_h
|
2209
2233
|
|
2210
|
-
# Set x-goog-api-client
|
2234
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2211
2235
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2212
2236
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2213
2237
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2238
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2214
2239
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2215
2240
|
|
2216
2241
|
header_params = {}
|
@@ -2317,10 +2342,11 @@ module Google
|
|
2317
2342
|
# Customize the options with defaults
|
2318
2343
|
metadata = @config.rpcs.list_files.metadata.to_h
|
2319
2344
|
|
2320
|
-
# Set x-goog-api-client
|
2345
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2321
2346
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2322
2347
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2323
2348
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2349
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2324
2350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2325
2351
|
|
2326
2352
|
header_params = {}
|
@@ -2403,10 +2429,11 @@ module Google
|
|
2403
2429
|
# Customize the options with defaults
|
2404
2430
|
metadata = @config.rpcs.get_file.metadata.to_h
|
2405
2431
|
|
2406
|
-
# Set x-goog-api-client
|
2432
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2407
2433
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2408
2434
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2409
2435
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2436
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2410
2437
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2411
2438
|
|
2412
2439
|
header_params = {}
|
@@ -2508,10 +2535,11 @@ module Google
|
|
2508
2535
|
# Customize the options with defaults
|
2509
2536
|
metadata = @config.rpcs.list_tags.metadata.to_h
|
2510
2537
|
|
2511
|
-
# Set x-goog-api-client
|
2538
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2512
2539
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2513
2540
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2514
2541
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2542
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2515
2543
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2516
2544
|
|
2517
2545
|
header_params = {}
|
@@ -2594,10 +2622,11 @@ module Google
|
|
2594
2622
|
# Customize the options with defaults
|
2595
2623
|
metadata = @config.rpcs.get_tag.metadata.to_h
|
2596
2624
|
|
2597
|
-
# Set x-goog-api-client
|
2625
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2598
2626
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2599
2627
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2600
2628
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2629
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2601
2630
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2602
2631
|
|
2603
2632
|
header_params = {}
|
@@ -2683,10 +2712,11 @@ module Google
|
|
2683
2712
|
# Customize the options with defaults
|
2684
2713
|
metadata = @config.rpcs.create_tag.metadata.to_h
|
2685
2714
|
|
2686
|
-
# Set x-goog-api-client
|
2715
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2687
2716
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2688
2717
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2689
2718
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2719
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2690
2720
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2691
2721
|
|
2692
2722
|
header_params = {}
|
@@ -2772,10 +2802,11 @@ module Google
|
|
2772
2802
|
# Customize the options with defaults
|
2773
2803
|
metadata = @config.rpcs.update_tag.metadata.to_h
|
2774
2804
|
|
2775
|
-
# Set x-goog-api-client
|
2805
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2776
2806
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2777
2807
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2778
2808
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2809
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2779
2810
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2780
2811
|
|
2781
2812
|
header_params = {}
|
@@ -2857,10 +2888,11 @@ module Google
|
|
2857
2888
|
# Customize the options with defaults
|
2858
2889
|
metadata = @config.rpcs.delete_tag.metadata.to_h
|
2859
2890
|
|
2860
|
-
# Set x-goog-api-client
|
2891
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2861
2892
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2862
2893
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2863
2894
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2895
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2864
2896
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2865
2897
|
|
2866
2898
|
header_params = {}
|
@@ -2954,10 +2986,11 @@ module Google
|
|
2954
2986
|
# Customize the options with defaults
|
2955
2987
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
2956
2988
|
|
2957
|
-
# Set x-goog-api-client
|
2989
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2958
2990
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2959
2991
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2960
2992
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2993
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2961
2994
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2962
2995
|
|
2963
2996
|
header_params = {}
|
@@ -3043,10 +3076,11 @@ module Google
|
|
3043
3076
|
# Customize the options with defaults
|
3044
3077
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
3045
3078
|
|
3046
|
-
# Set x-goog-api-client
|
3079
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3047
3080
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3048
3081
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3049
3082
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
3083
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3050
3084
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3051
3085
|
|
3052
3086
|
header_params = {}
|
@@ -3134,10 +3168,11 @@ module Google
|
|
3134
3168
|
# Customize the options with defaults
|
3135
3169
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
3136
3170
|
|
3137
|
-
# Set x-goog-api-client
|
3171
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3138
3172
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3139
3173
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3140
3174
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
3175
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3141
3176
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3142
3177
|
|
3143
3178
|
header_params = {}
|
@@ -3219,10 +3254,11 @@ module Google
|
|
3219
3254
|
# Customize the options with defaults
|
3220
3255
|
metadata = @config.rpcs.get_project_settings.metadata.to_h
|
3221
3256
|
|
3222
|
-
# Set x-goog-api-client
|
3257
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3223
3258
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3224
3259
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3225
3260
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
3261
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3226
3262
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3227
3263
|
|
3228
3264
|
header_params = {}
|
@@ -3306,10 +3342,11 @@ module Google
|
|
3306
3342
|
# Customize the options with defaults
|
3307
3343
|
metadata = @config.rpcs.update_project_settings.metadata.to_h
|
3308
3344
|
|
3309
|
-
# Set x-goog-api-client
|
3345
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3310
3346
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3311
3347
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3312
3348
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
3349
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3313
3350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3314
3351
|
|
3315
3352
|
header_params = {}
|
@@ -3391,10 +3428,11 @@ module Google
|
|
3391
3428
|
# Customize the options with defaults
|
3392
3429
|
metadata = @config.rpcs.get_vpcsc_config.metadata.to_h
|
3393
3430
|
|
3394
|
-
# Set x-goog-api-client
|
3431
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3395
3432
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3396
3433
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3397
3434
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
3435
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3398
3436
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3399
3437
|
|
3400
3438
|
header_params = {}
|
@@ -3478,10 +3516,11 @@ module Google
|
|
3478
3516
|
# Customize the options with defaults
|
3479
3517
|
metadata = @config.rpcs.update_vpcsc_config.metadata.to_h
|
3480
3518
|
|
3481
|
-
# Set x-goog-api-client
|
3519
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3482
3520
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3483
3521
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3484
3522
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
3523
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3485
3524
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3486
3525
|
|
3487
3526
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module ArtifactRegistry
|
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 = "artifactregistry.$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::ArtifactRegistry::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::ArtifactRegistry::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::ArtifactRegistry::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::ArtifactRegistry::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::ArtifactRegistry::V1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|