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.
@@ -45,6 +45,9 @@ module Google
45
45
  # or Version.
46
46
  #
47
47
  class Client
48
+ # @private
49
+ API_VERSION = ""
50
+
48
51
  # @private
49
52
  DEFAULT_ENDPOINT_TEMPLATE = "artifactregistry.$UNIVERSE_DOMAIN$"
50
53
 
@@ -262,12 +265,13 @@ module Google
262
265
  # Customize the options with defaults
263
266
  call_metadata = @config.rpcs.list_docker_images.metadata.to_h
264
267
 
265
- # Set x-goog-api-client and x-goog-user-project headers
268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
266
269
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
267
270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
268
271
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
269
272
  transports_version_send: [:rest]
270
273
 
274
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
271
275
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
276
 
273
277
  options.apply_defaults timeout: @config.rpcs.list_docker_images.timeout,
@@ -341,12 +345,13 @@ module Google
341
345
  # Customize the options with defaults
342
346
  call_metadata = @config.rpcs.get_docker_image.metadata.to_h
343
347
 
344
- # Set x-goog-api-client and x-goog-user-project headers
348
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
345
349
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
346
350
  lib_name: @config.lib_name, lib_version: @config.lib_version,
347
351
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
348
352
  transports_version_send: [:rest]
349
353
 
354
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
350
355
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
356
 
352
357
  options.apply_defaults timeout: @config.rpcs.get_docker_image.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.list_maven_artifacts.metadata.to_h
430
435
 
431
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
432
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
439
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
435
440
  transports_version_send: [:rest]
436
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  options.apply_defaults timeout: @config.rpcs.list_maven_artifacts.timeout,
@@ -507,12 +513,13 @@ module Google
507
513
  # Customize the options with defaults
508
514
  call_metadata = @config.rpcs.get_maven_artifact.metadata.to_h
509
515
 
510
- # Set x-goog-api-client and x-goog-user-project headers
516
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
511
517
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
512
518
  lib_name: @config.lib_name, lib_version: @config.lib_version,
513
519
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
514
520
  transports_version_send: [:rest]
515
521
 
522
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
516
523
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
517
524
 
518
525
  options.apply_defaults timeout: @config.rpcs.get_maven_artifact.timeout,
@@ -594,12 +601,13 @@ module Google
594
601
  # Customize the options with defaults
595
602
  call_metadata = @config.rpcs.list_npm_packages.metadata.to_h
596
603
 
597
- # Set x-goog-api-client and x-goog-user-project headers
604
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
598
605
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
599
606
  lib_name: @config.lib_name, lib_version: @config.lib_version,
600
607
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
601
608
  transports_version_send: [:rest]
602
609
 
610
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
603
611
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
604
612
 
605
613
  options.apply_defaults timeout: @config.rpcs.list_npm_packages.timeout,
@@ -673,12 +681,13 @@ module Google
673
681
  # Customize the options with defaults
674
682
  call_metadata = @config.rpcs.get_npm_package.metadata.to_h
675
683
 
676
- # Set x-goog-api-client and x-goog-user-project headers
684
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
677
685
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
678
686
  lib_name: @config.lib_name, lib_version: @config.lib_version,
679
687
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
680
688
  transports_version_send: [:rest]
681
689
 
690
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
682
691
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
683
692
 
684
693
  options.apply_defaults timeout: @config.rpcs.get_npm_package.timeout,
@@ -760,12 +769,13 @@ module Google
760
769
  # Customize the options with defaults
761
770
  call_metadata = @config.rpcs.list_python_packages.metadata.to_h
762
771
 
763
- # Set x-goog-api-client and x-goog-user-project headers
772
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
764
773
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
774
  lib_name: @config.lib_name, lib_version: @config.lib_version,
766
775
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
767
776
  transports_version_send: [:rest]
768
777
 
778
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
769
779
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
770
780
 
771
781
  options.apply_defaults timeout: @config.rpcs.list_python_packages.timeout,
@@ -839,12 +849,13 @@ module Google
839
849
  # Customize the options with defaults
840
850
  call_metadata = @config.rpcs.get_python_package.metadata.to_h
841
851
 
842
- # Set x-goog-api-client and x-goog-user-project headers
852
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
843
853
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
844
854
  lib_name: @config.lib_name, lib_version: @config.lib_version,
845
855
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
846
856
  transports_version_send: [:rest]
847
857
 
858
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
848
859
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
849
860
 
850
861
  options.apply_defaults timeout: @config.rpcs.get_python_package.timeout,
@@ -929,12 +940,13 @@ module Google
929
940
  # Customize the options with defaults
930
941
  call_metadata = @config.rpcs.import_apt_artifacts.metadata.to_h
931
942
 
932
- # Set x-goog-api-client and x-goog-user-project headers
943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
933
944
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
934
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
935
946
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
936
947
  transports_version_send: [:rest]
937
948
 
949
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
938
950
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
939
951
 
940
952
  options.apply_defaults timeout: @config.rpcs.import_apt_artifacts.timeout,
@@ -1020,12 +1032,13 @@ module Google
1020
1032
  # Customize the options with defaults
1021
1033
  call_metadata = @config.rpcs.import_yum_artifacts.metadata.to_h
1022
1034
 
1023
- # Set x-goog-api-client and x-goog-user-project headers
1035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1024
1036
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1025
1037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1026
1038
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1027
1039
  transports_version_send: [:rest]
1028
1040
 
1041
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1029
1042
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1030
1043
 
1031
1044
  options.apply_defaults timeout: @config.rpcs.import_yum_artifacts.timeout,
@@ -1108,12 +1121,13 @@ module Google
1108
1121
  # Customize the options with defaults
1109
1122
  call_metadata = @config.rpcs.list_repositories.metadata.to_h
1110
1123
 
1111
- # Set x-goog-api-client and x-goog-user-project headers
1124
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1112
1125
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1113
1126
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1114
1127
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1115
1128
  transports_version_send: [:rest]
1116
1129
 
1130
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1117
1131
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1118
1132
 
1119
1133
  options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
@@ -1187,12 +1201,13 @@ module Google
1187
1201
  # Customize the options with defaults
1188
1202
  call_metadata = @config.rpcs.get_repository.metadata.to_h
1189
1203
 
1190
- # Set x-goog-api-client and x-goog-user-project headers
1204
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1191
1205
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1192
1206
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1193
1207
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1194
1208
  transports_version_send: [:rest]
1195
1209
 
1210
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1196
1211
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1197
1212
 
1198
1213
  options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
@@ -1278,12 +1293,13 @@ module Google
1278
1293
  # Customize the options with defaults
1279
1294
  call_metadata = @config.rpcs.create_repository.metadata.to_h
1280
1295
 
1281
- # 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
1282
1297
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1283
1298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1284
1299
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1285
1300
  transports_version_send: [:rest]
1286
1301
 
1302
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1287
1303
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1288
1304
 
1289
1305
  options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
@@ -1361,12 +1377,13 @@ module Google
1361
1377
  # Customize the options with defaults
1362
1378
  call_metadata = @config.rpcs.update_repository.metadata.to_h
1363
1379
 
1364
- # Set x-goog-api-client and x-goog-user-project headers
1380
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1365
1381
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1366
1382
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1367
1383
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1368
1384
  transports_version_send: [:rest]
1369
1385
 
1386
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1370
1387
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1371
1388
 
1372
1389
  options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
@@ -1448,12 +1465,13 @@ module Google
1448
1465
  # Customize the options with defaults
1449
1466
  call_metadata = @config.rpcs.delete_repository.metadata.to_h
1450
1467
 
1451
- # Set x-goog-api-client and x-goog-user-project headers
1468
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1452
1469
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1453
1470
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1454
1471
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1455
1472
  transports_version_send: [:rest]
1456
1473
 
1474
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1457
1475
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1458
1476
 
1459
1477
  options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
@@ -1535,12 +1553,13 @@ module Google
1535
1553
  # Customize the options with defaults
1536
1554
  call_metadata = @config.rpcs.list_packages.metadata.to_h
1537
1555
 
1538
- # Set x-goog-api-client and x-goog-user-project headers
1556
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1539
1557
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1540
1558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1541
1559
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1542
1560
  transports_version_send: [:rest]
1543
1561
 
1562
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1544
1563
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1545
1564
 
1546
1565
  options.apply_defaults timeout: @config.rpcs.list_packages.timeout,
@@ -1614,12 +1633,13 @@ module Google
1614
1633
  # Customize the options with defaults
1615
1634
  call_metadata = @config.rpcs.get_package.metadata.to_h
1616
1635
 
1617
- # Set x-goog-api-client and x-goog-user-project headers
1636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1618
1637
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1619
1638
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1620
1639
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1621
1640
  transports_version_send: [:rest]
1622
1641
 
1642
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1623
1643
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1624
1644
 
1625
1645
  options.apply_defaults timeout: @config.rpcs.get_package.timeout,
@@ -1700,12 +1720,13 @@ module Google
1700
1720
  # Customize the options with defaults
1701
1721
  call_metadata = @config.rpcs.delete_package.metadata.to_h
1702
1722
 
1703
- # Set x-goog-api-client and x-goog-user-project headers
1723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1704
1724
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1705
1725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1706
1726
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1707
1727
  transports_version_send: [:rest]
1708
1728
 
1729
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1709
1730
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1710
1731
 
1711
1732
  options.apply_defaults timeout: @config.rpcs.delete_package.timeout,
@@ -1791,12 +1812,13 @@ module Google
1791
1812
  # Customize the options with defaults
1792
1813
  call_metadata = @config.rpcs.list_versions.metadata.to_h
1793
1814
 
1794
- # Set x-goog-api-client and x-goog-user-project headers
1815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1795
1816
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1796
1817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1797
1818
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1798
1819
  transports_version_send: [:rest]
1799
1820
 
1821
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1800
1822
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1801
1823
 
1802
1824
  options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
@@ -1872,12 +1894,13 @@ module Google
1872
1894
  # Customize the options with defaults
1873
1895
  call_metadata = @config.rpcs.get_version.metadata.to_h
1874
1896
 
1875
- # Set x-goog-api-client and x-goog-user-project headers
1897
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1876
1898
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1877
1899
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1878
1900
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1879
1901
  transports_version_send: [:rest]
1880
1902
 
1903
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1881
1904
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1882
1905
 
1883
1906
  options.apply_defaults timeout: @config.rpcs.get_version.timeout,
@@ -1961,12 +1984,13 @@ module Google
1961
1984
  # Customize the options with defaults
1962
1985
  call_metadata = @config.rpcs.delete_version.metadata.to_h
1963
1986
 
1964
- # Set x-goog-api-client and x-goog-user-project headers
1987
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1965
1988
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1966
1989
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1967
1990
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
1968
1991
  transports_version_send: [:rest]
1969
1992
 
1993
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1970
1994
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1971
1995
 
1972
1996
  options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
@@ -2053,12 +2077,13 @@ module Google
2053
2077
  # Customize the options with defaults
2054
2078
  call_metadata = @config.rpcs.batch_delete_versions.metadata.to_h
2055
2079
 
2056
- # Set x-goog-api-client and x-goog-user-project headers
2080
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2057
2081
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2058
2082
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2059
2083
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2060
2084
  transports_version_send: [:rest]
2061
2085
 
2086
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2062
2087
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2063
2088
 
2064
2089
  options.apply_defaults timeout: @config.rpcs.batch_delete_versions.timeout,
@@ -2156,12 +2181,13 @@ module Google
2156
2181
  # Customize the options with defaults
2157
2182
  call_metadata = @config.rpcs.list_files.metadata.to_h
2158
2183
 
2159
- # Set x-goog-api-client and x-goog-user-project headers
2184
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2160
2185
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2161
2186
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2162
2187
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2163
2188
  transports_version_send: [:rest]
2164
2189
 
2190
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2165
2191
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2166
2192
 
2167
2193
  options.apply_defaults timeout: @config.rpcs.list_files.timeout,
@@ -2235,12 +2261,13 @@ module Google
2235
2261
  # Customize the options with defaults
2236
2262
  call_metadata = @config.rpcs.get_file.metadata.to_h
2237
2263
 
2238
- # Set x-goog-api-client and x-goog-user-project headers
2264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2239
2265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2240
2266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2241
2267
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2242
2268
  transports_version_send: [:rest]
2243
2269
 
2270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2244
2271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2245
2272
 
2246
2273
  options.apply_defaults timeout: @config.rpcs.get_file.timeout,
@@ -2333,12 +2360,13 @@ module Google
2333
2360
  # Customize the options with defaults
2334
2361
  call_metadata = @config.rpcs.list_tags.metadata.to_h
2335
2362
 
2336
- # Set x-goog-api-client and x-goog-user-project headers
2363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2337
2364
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2338
2365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2339
2366
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2340
2367
  transports_version_send: [:rest]
2341
2368
 
2369
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2342
2370
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2343
2371
 
2344
2372
  options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
@@ -2412,12 +2440,13 @@ module Google
2412
2440
  # Customize the options with defaults
2413
2441
  call_metadata = @config.rpcs.get_tag.metadata.to_h
2414
2442
 
2415
- # Set x-goog-api-client and x-goog-user-project headers
2443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2416
2444
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2417
2445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2418
2446
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2419
2447
  transports_version_send: [:rest]
2420
2448
 
2449
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2421
2450
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2422
2451
 
2423
2452
  options.apply_defaults timeout: @config.rpcs.get_tag.timeout,
@@ -2494,12 +2523,13 @@ module Google
2494
2523
  # Customize the options with defaults
2495
2524
  call_metadata = @config.rpcs.create_tag.metadata.to_h
2496
2525
 
2497
- # Set x-goog-api-client and x-goog-user-project headers
2526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2498
2527
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2499
2528
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2500
2529
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2501
2530
  transports_version_send: [:rest]
2502
2531
 
2532
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2503
2533
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2504
2534
 
2505
2535
  options.apply_defaults timeout: @config.rpcs.create_tag.timeout,
@@ -2576,12 +2606,13 @@ module Google
2576
2606
  # Customize the options with defaults
2577
2607
  call_metadata = @config.rpcs.update_tag.metadata.to_h
2578
2608
 
2579
- # Set x-goog-api-client and x-goog-user-project headers
2609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2580
2610
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2581
2611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2582
2612
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2583
2613
  transports_version_send: [:rest]
2584
2614
 
2615
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2585
2616
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2586
2617
 
2587
2618
  options.apply_defaults timeout: @config.rpcs.update_tag.timeout,
@@ -2654,12 +2685,13 @@ module Google
2654
2685
  # Customize the options with defaults
2655
2686
  call_metadata = @config.rpcs.delete_tag.metadata.to_h
2656
2687
 
2657
- # Set x-goog-api-client and x-goog-user-project headers
2688
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2658
2689
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2659
2690
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2660
2691
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2661
2692
  transports_version_send: [:rest]
2662
2693
 
2694
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2663
2695
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2664
2696
 
2665
2697
  options.apply_defaults timeout: @config.rpcs.delete_tag.timeout,
@@ -2744,12 +2776,13 @@ module Google
2744
2776
  # Customize the options with defaults
2745
2777
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
2746
2778
 
2747
- # Set x-goog-api-client and x-goog-user-project headers
2779
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2748
2780
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2749
2781
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2750
2782
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2751
2783
  transports_version_send: [:rest]
2752
2784
 
2785
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2753
2786
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2754
2787
 
2755
2788
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -2826,12 +2859,13 @@ module Google
2826
2859
  # Customize the options with defaults
2827
2860
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
2828
2861
 
2829
- # Set x-goog-api-client and x-goog-user-project headers
2862
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2830
2863
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2831
2864
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2832
2865
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2833
2866
  transports_version_send: [:rest]
2834
2867
 
2868
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2835
2869
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2836
2870
 
2837
2871
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -2910,12 +2944,13 @@ module Google
2910
2944
  # Customize the options with defaults
2911
2945
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
2912
2946
 
2913
- # Set x-goog-api-client and x-goog-user-project headers
2947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2914
2948
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2915
2949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2916
2950
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2917
2951
  transports_version_send: [:rest]
2918
2952
 
2953
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2919
2954
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2920
2955
 
2921
2956
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -2988,12 +3023,13 @@ module Google
2988
3023
  # Customize the options with defaults
2989
3024
  call_metadata = @config.rpcs.get_project_settings.metadata.to_h
2990
3025
 
2991
- # Set x-goog-api-client and x-goog-user-project headers
3026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2992
3027
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2993
3028
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2994
3029
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
2995
3030
  transports_version_send: [:rest]
2996
3031
 
3032
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2997
3033
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2998
3034
 
2999
3035
  options.apply_defaults timeout: @config.rpcs.get_project_settings.timeout,
@@ -3068,12 +3104,13 @@ module Google
3068
3104
  # Customize the options with defaults
3069
3105
  call_metadata = @config.rpcs.update_project_settings.metadata.to_h
3070
3106
 
3071
- # Set x-goog-api-client and x-goog-user-project headers
3107
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3072
3108
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3073
3109
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3074
3110
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
3075
3111
  transports_version_send: [:rest]
3076
3112
 
3113
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3077
3114
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3078
3115
 
3079
3116
  options.apply_defaults timeout: @config.rpcs.update_project_settings.timeout,
@@ -3146,12 +3183,13 @@ module Google
3146
3183
  # Customize the options with defaults
3147
3184
  call_metadata = @config.rpcs.get_vpcsc_config.metadata.to_h
3148
3185
 
3149
- # Set x-goog-api-client and x-goog-user-project headers
3186
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3150
3187
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3151
3188
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3152
3189
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
3153
3190
  transports_version_send: [:rest]
3154
3191
 
3192
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3155
3193
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3156
3194
 
3157
3195
  options.apply_defaults timeout: @config.rpcs.get_vpcsc_config.timeout,
@@ -3226,12 +3264,13 @@ module Google
3226
3264
  # Customize the options with defaults
3227
3265
  call_metadata = @config.rpcs.update_vpcsc_config.metadata.to_h
3228
3266
 
3229
- # Set x-goog-api-client and x-goog-user-project headers
3267
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3230
3268
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3231
3269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3232
3270
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
3233
3271
  transports_version_send: [:rest]
3234
3272
 
3273
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3235
3274
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3236
3275
 
3237
3276
  options.apply_defaults timeout: @config.rpcs.update_vpcsc_config.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 = "artifactregistry.$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::ArtifactRegistry::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::ArtifactRegistry::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::ArtifactRegistry::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::ArtifactRegistry::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1
24
- VERSION = "0.12.2"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
9
9
  require 'google/rpc/status_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n6google/devtools/artifactregistry/v1/apt_artifact.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xc0\x03\n\x0b\x41ptArtifact\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1a\n\x0cpackage_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12X\n\x0cpackage_type\x18\x03 \x01(\x0e\x32<.google.devtools.artifactregistry.v1.AptArtifact.PackageTypeB\x04\xe2\x41\x01\x03\x12\x1a\n\x0c\x61rchitecture\x18\x04 \x01(\tB\x04\xe2\x41\x01\x03\x12\x17\n\tcomponent\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1a\n\x0c\x63ontrol_file\x18\x06 \x01(\x0c\x42\x04\xe2\x41\x01\x03\"C\n\x0bPackageType\x12\x1c\n\x18PACKAGE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42INARY\x10\x01\x12\n\n\x06SOURCE\x10\x02:\x90\x01\xea\x41\x8c\x01\n+artifactregistry.googleapis.com/AptArtifact\x12]projects/{project}/locations/{location}/repositories/{repository}/aptArtifacts/{apt_artifact}\"B\n\x1bImportAptArtifactsGcsSource\x12\x0c\n\x04uris\x18\x01 \x03(\t\x12\x15\n\ruse_wildcards\x18\x02 \x01(\x08\"\x8d\x01\n\x19ImportAptArtifactsRequest\x12V\n\ngcs_source\x18\x02 \x01(\x0b\x32@.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSourceH\x00\x12\x0e\n\x06parent\x18\x01 \x01(\tB\x08\n\x06source\"\xa2\x01\n\x1bImportAptArtifactsErrorInfo\x12V\n\ngcs_source\x18\x01 \x01(\x0b\x32@.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSourceH\x00\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x08\n\x06source\"\xb7\x01\n\x1aImportAptArtifactsResponse\x12G\n\rapt_artifacts\x18\x01 \x03(\x0b\x32\x30.google.devtools.artifactregistry.v1.AptArtifact\x12P\n\x06\x65rrors\x18\x02 \x03(\x0b\x32@.google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo\"\x1c\n\x1aImportAptArtifactsMetadataB\xfb\x01\n\'com.google.devtools.artifactregistry.v1B\x10\x41ptArtifactProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
12
+ descriptor_data = "\n6google/devtools/artifactregistry/v1/apt_artifact.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xba\x03\n\x0b\x41ptArtifact\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cpackage_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12W\n\x0cpackage_type\x18\x03 \x01(\x0e\x32<.google.devtools.artifactregistry.v1.AptArtifact.PackageTypeB\x03\xe0\x41\x03\x12\x19\n\x0c\x61rchitecture\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tcomponent\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63ontrol_file\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x03\"C\n\x0bPackageType\x12\x1c\n\x18PACKAGE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42INARY\x10\x01\x12\n\n\x06SOURCE\x10\x02:\x90\x01\xea\x41\x8c\x01\n+artifactregistry.googleapis.com/AptArtifact\x12]projects/{project}/locations/{location}/repositories/{repository}/aptArtifacts/{apt_artifact}\"B\n\x1bImportAptArtifactsGcsSource\x12\x0c\n\x04uris\x18\x01 \x03(\t\x12\x15\n\ruse_wildcards\x18\x02 \x01(\x08\"\x8d\x01\n\x19ImportAptArtifactsRequest\x12V\n\ngcs_source\x18\x02 \x01(\x0b\x32@.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSourceH\x00\x12\x0e\n\x06parent\x18\x01 \x01(\tB\x08\n\x06source\"\xa2\x01\n\x1bImportAptArtifactsErrorInfo\x12V\n\ngcs_source\x18\x01 \x01(\x0b\x32@.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSourceH\x00\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x08\n\x06source\"\xb7\x01\n\x1aImportAptArtifactsResponse\x12G\n\rapt_artifacts\x18\x01 \x03(\x0b\x32\x30.google.devtools.artifactregistry.v1.AptArtifact\x12P\n\x06\x65rrors\x18\x02 \x03(\x0b\x32@.google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo\"\x1c\n\x1aImportAptArtifactsMetadataB\xfb\x01\n\'com.google.devtools.artifactregistry.v1B\x10\x41ptArtifactProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15