google-cloud-artifact_registry-v1beta2 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +92 -51
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +25 -20
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/client.rb +92 -51
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/operations.rb +54 -42
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/rest/service_stub.rb +214 -152
- data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -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
|
|
@@ -259,14 +262,26 @@ module Google
|
|
259
262
|
universe_domain: @config.universe_domain,
|
260
263
|
channel_args: @config.channel_args,
|
261
264
|
interceptors: @config.interceptors,
|
262
|
-
channel_pool_config: @config.channel_pool
|
265
|
+
channel_pool_config: @config.channel_pool,
|
266
|
+
logger: @config.logger
|
263
267
|
)
|
264
268
|
|
269
|
+
@artifact_registry_stub.stub_logger&.info do |entry|
|
270
|
+
entry.set_system_name
|
271
|
+
entry.set_service
|
272
|
+
entry.message = "Created client for #{entry.service}"
|
273
|
+
entry.set_credentials_fields credentials
|
274
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
275
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
276
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
277
|
+
end
|
278
|
+
|
265
279
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
266
280
|
config.credentials = credentials
|
267
281
|
config.quota_project = @quota_project_id
|
268
282
|
config.endpoint = @artifact_registry_stub.endpoint
|
269
283
|
config.universe_domain = @artifact_registry_stub.universe_domain
|
284
|
+
config.logger = @artifact_registry_stub.logger if config.respond_to? :logger=
|
270
285
|
end
|
271
286
|
end
|
272
287
|
|
@@ -284,6 +299,15 @@ module Google
|
|
284
299
|
#
|
285
300
|
attr_reader :location_client
|
286
301
|
|
302
|
+
##
|
303
|
+
# The logger used for request/response debug logging.
|
304
|
+
#
|
305
|
+
# @return [Logger]
|
306
|
+
#
|
307
|
+
def logger
|
308
|
+
@artifact_registry_stub.logger
|
309
|
+
end
|
310
|
+
|
287
311
|
# Service calls
|
288
312
|
|
289
313
|
##
|
@@ -353,10 +377,11 @@ module Google
|
|
353
377
|
# Customize the options with defaults
|
354
378
|
metadata = @config.rpcs.import_apt_artifacts.metadata.to_h
|
355
379
|
|
356
|
-
# Set x-goog-api-client
|
380
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
357
381
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
358
382
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
359
383
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
384
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
385
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
386
|
|
362
387
|
header_params = {}
|
@@ -378,7 +403,7 @@ module Google
|
|
378
403
|
@artifact_registry_stub.call_rpc :import_apt_artifacts, request, options: options do |response, operation|
|
379
404
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
380
405
|
yield response, operation if block_given?
|
381
|
-
|
406
|
+
throw :response, response
|
382
407
|
end
|
383
408
|
rescue ::GRPC::BadStatus => e
|
384
409
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -451,10 +476,11 @@ module Google
|
|
451
476
|
# Customize the options with defaults
|
452
477
|
metadata = @config.rpcs.import_yum_artifacts.metadata.to_h
|
453
478
|
|
454
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
455
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
456
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
457
482
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
458
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
459
485
|
|
460
486
|
header_params = {}
|
@@ -476,7 +502,7 @@ module Google
|
|
476
502
|
@artifact_registry_stub.call_rpc :import_yum_artifacts, request, options: options do |response, operation|
|
477
503
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
478
504
|
yield response, operation if block_given?
|
479
|
-
|
505
|
+
throw :response, response
|
480
506
|
end
|
481
507
|
rescue ::GRPC::BadStatus => e
|
482
508
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -545,10 +571,11 @@ module Google
|
|
545
571
|
# Customize the options with defaults
|
546
572
|
metadata = @config.rpcs.list_repositories.metadata.to_h
|
547
573
|
|
548
|
-
# Set x-goog-api-client
|
574
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
549
575
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
550
576
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
551
577
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
578
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
552
579
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
553
580
|
|
554
581
|
header_params = {}
|
@@ -570,7 +597,7 @@ module Google
|
|
570
597
|
@artifact_registry_stub.call_rpc :list_repositories, request, options: options do |response, operation|
|
571
598
|
response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_repositories, request, response, operation, options
|
572
599
|
yield response, operation if block_given?
|
573
|
-
|
600
|
+
throw :response, response
|
574
601
|
end
|
575
602
|
rescue ::GRPC::BadStatus => e
|
576
603
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -631,10 +658,11 @@ module Google
|
|
631
658
|
# Customize the options with defaults
|
632
659
|
metadata = @config.rpcs.get_repository.metadata.to_h
|
633
660
|
|
634
|
-
# Set x-goog-api-client
|
661
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
635
662
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
636
663
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
637
664
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
665
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
638
666
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
639
667
|
|
640
668
|
header_params = {}
|
@@ -655,7 +683,6 @@ module Google
|
|
655
683
|
|
656
684
|
@artifact_registry_stub.call_rpc :get_repository, request, options: options do |response, operation|
|
657
685
|
yield response, operation if block_given?
|
658
|
-
return response
|
659
686
|
end
|
660
687
|
rescue ::GRPC::BadStatus => e
|
661
688
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -728,10 +755,11 @@ module Google
|
|
728
755
|
# Customize the options with defaults
|
729
756
|
metadata = @config.rpcs.create_repository.metadata.to_h
|
730
757
|
|
731
|
-
# Set x-goog-api-client
|
758
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
732
759
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
733
760
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
734
761
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
762
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
735
763
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
736
764
|
|
737
765
|
header_params = {}
|
@@ -753,7 +781,7 @@ module Google
|
|
753
781
|
@artifact_registry_stub.call_rpc :create_repository, request, options: options do |response, operation|
|
754
782
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
755
783
|
yield response, operation if block_given?
|
756
|
-
|
784
|
+
throw :response, response
|
757
785
|
end
|
758
786
|
rescue ::GRPC::BadStatus => e
|
759
787
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -818,10 +846,11 @@ module Google
|
|
818
846
|
# Customize the options with defaults
|
819
847
|
metadata = @config.rpcs.update_repository.metadata.to_h
|
820
848
|
|
821
|
-
# Set x-goog-api-client
|
849
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
822
850
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
823
851
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
824
852
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
853
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
825
854
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
826
855
|
|
827
856
|
header_params = {}
|
@@ -842,7 +871,6 @@ module Google
|
|
842
871
|
|
843
872
|
@artifact_registry_stub.call_rpc :update_repository, request, options: options do |response, operation|
|
844
873
|
yield response, operation if block_given?
|
845
|
-
return response
|
846
874
|
end
|
847
875
|
rescue ::GRPC::BadStatus => e
|
848
876
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -912,10 +940,11 @@ module Google
|
|
912
940
|
# Customize the options with defaults
|
913
941
|
metadata = @config.rpcs.delete_repository.metadata.to_h
|
914
942
|
|
915
|
-
# Set x-goog-api-client
|
943
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
916
944
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
917
945
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
918
946
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
947
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
919
948
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
920
949
|
|
921
950
|
header_params = {}
|
@@ -937,7 +966,7 @@ module Google
|
|
937
966
|
@artifact_registry_stub.call_rpc :delete_repository, request, options: options do |response, operation|
|
938
967
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
939
968
|
yield response, operation if block_given?
|
940
|
-
|
969
|
+
throw :response, response
|
941
970
|
end
|
942
971
|
rescue ::GRPC::BadStatus => e
|
943
972
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1007,10 +1036,11 @@ module Google
|
|
1007
1036
|
# Customize the options with defaults
|
1008
1037
|
metadata = @config.rpcs.list_packages.metadata.to_h
|
1009
1038
|
|
1010
|
-
# Set x-goog-api-client
|
1039
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1011
1040
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1012
1041
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1013
1042
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1043
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1014
1044
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1015
1045
|
|
1016
1046
|
header_params = {}
|
@@ -1032,7 +1062,7 @@ module Google
|
|
1032
1062
|
@artifact_registry_stub.call_rpc :list_packages, request, options: options do |response, operation|
|
1033
1063
|
response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_packages, request, response, operation, options
|
1034
1064
|
yield response, operation if block_given?
|
1035
|
-
|
1065
|
+
throw :response, response
|
1036
1066
|
end
|
1037
1067
|
rescue ::GRPC::BadStatus => e
|
1038
1068
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1093,10 +1123,11 @@ module Google
|
|
1093
1123
|
# Customize the options with defaults
|
1094
1124
|
metadata = @config.rpcs.get_package.metadata.to_h
|
1095
1125
|
|
1096
|
-
# Set x-goog-api-client
|
1126
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1097
1127
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1098
1128
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1099
1129
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1130
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1100
1131
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1101
1132
|
|
1102
1133
|
header_params = {}
|
@@ -1117,7 +1148,6 @@ module Google
|
|
1117
1148
|
|
1118
1149
|
@artifact_registry_stub.call_rpc :get_package, request, options: options do |response, operation|
|
1119
1150
|
yield response, operation if block_given?
|
1120
|
-
return response
|
1121
1151
|
end
|
1122
1152
|
rescue ::GRPC::BadStatus => e
|
1123
1153
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1186,10 +1216,11 @@ module Google
|
|
1186
1216
|
# Customize the options with defaults
|
1187
1217
|
metadata = @config.rpcs.delete_package.metadata.to_h
|
1188
1218
|
|
1189
|
-
# Set x-goog-api-client
|
1219
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1190
1220
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1191
1221
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1192
1222
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1223
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1193
1224
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1194
1225
|
|
1195
1226
|
header_params = {}
|
@@ -1211,7 +1242,7 @@ module Google
|
|
1211
1242
|
@artifact_registry_stub.call_rpc :delete_package, request, options: options do |response, operation|
|
1212
1243
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1213
1244
|
yield response, operation if block_given?
|
1214
|
-
|
1245
|
+
throw :response, response
|
1215
1246
|
end
|
1216
1247
|
rescue ::GRPC::BadStatus => e
|
1217
1248
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1284,10 +1315,11 @@ module Google
|
|
1284
1315
|
# Customize the options with defaults
|
1285
1316
|
metadata = @config.rpcs.list_versions.metadata.to_h
|
1286
1317
|
|
1287
|
-
# Set x-goog-api-client
|
1318
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1288
1319
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1289
1320
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1290
1321
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1322
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1291
1323
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1292
1324
|
|
1293
1325
|
header_params = {}
|
@@ -1309,7 +1341,7 @@ module Google
|
|
1309
1341
|
@artifact_registry_stub.call_rpc :list_versions, request, options: options do |response, operation|
|
1310
1342
|
response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_versions, request, response, operation, options
|
1311
1343
|
yield response, operation if block_given?
|
1312
|
-
|
1344
|
+
throw :response, response
|
1313
1345
|
end
|
1314
1346
|
rescue ::GRPC::BadStatus => e
|
1315
1347
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1372,10 +1404,11 @@ module Google
|
|
1372
1404
|
# Customize the options with defaults
|
1373
1405
|
metadata = @config.rpcs.get_version.metadata.to_h
|
1374
1406
|
|
1375
|
-
# Set x-goog-api-client
|
1407
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1376
1408
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1377
1409
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1378
1410
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1411
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1379
1412
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1380
1413
|
|
1381
1414
|
header_params = {}
|
@@ -1396,7 +1429,6 @@ module Google
|
|
1396
1429
|
|
1397
1430
|
@artifact_registry_stub.call_rpc :get_version, request, options: options do |response, operation|
|
1398
1431
|
yield response, operation if block_given?
|
1399
|
-
return response
|
1400
1432
|
end
|
1401
1433
|
rescue ::GRPC::BadStatus => e
|
1402
1434
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1468,10 +1500,11 @@ module Google
|
|
1468
1500
|
# Customize the options with defaults
|
1469
1501
|
metadata = @config.rpcs.delete_version.metadata.to_h
|
1470
1502
|
|
1471
|
-
# Set x-goog-api-client
|
1503
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1472
1504
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1473
1505
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1474
1506
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1507
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1475
1508
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1476
1509
|
|
1477
1510
|
header_params = {}
|
@@ -1493,7 +1526,7 @@ module Google
|
|
1493
1526
|
@artifact_registry_stub.call_rpc :delete_version, request, options: options do |response, operation|
|
1494
1527
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1495
1528
|
yield response, operation if block_given?
|
1496
|
-
|
1529
|
+
throw :response, response
|
1497
1530
|
end
|
1498
1531
|
rescue ::GRPC::BadStatus => e
|
1499
1532
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1576,10 +1609,11 @@ module Google
|
|
1576
1609
|
# Customize the options with defaults
|
1577
1610
|
metadata = @config.rpcs.list_files.metadata.to_h
|
1578
1611
|
|
1579
|
-
# Set x-goog-api-client
|
1612
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1580
1613
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1581
1614
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1582
1615
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1616
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1583
1617
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1584
1618
|
|
1585
1619
|
header_params = {}
|
@@ -1601,7 +1635,7 @@ module Google
|
|
1601
1635
|
@artifact_registry_stub.call_rpc :list_files, request, options: options do |response, operation|
|
1602
1636
|
response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_files, request, response, operation, options
|
1603
1637
|
yield response, operation if block_given?
|
1604
|
-
|
1638
|
+
throw :response, response
|
1605
1639
|
end
|
1606
1640
|
rescue ::GRPC::BadStatus => e
|
1607
1641
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1662,10 +1696,11 @@ module Google
|
|
1662
1696
|
# Customize the options with defaults
|
1663
1697
|
metadata = @config.rpcs.get_file.metadata.to_h
|
1664
1698
|
|
1665
|
-
# Set x-goog-api-client
|
1699
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1666
1700
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1667
1701
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1668
1702
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1703
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1669
1704
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1670
1705
|
|
1671
1706
|
header_params = {}
|
@@ -1686,7 +1721,6 @@ module Google
|
|
1686
1721
|
|
1687
1722
|
@artifact_registry_stub.call_rpc :get_file, request, options: options do |response, operation|
|
1688
1723
|
yield response, operation if block_given?
|
1689
|
-
return response
|
1690
1724
|
end
|
1691
1725
|
rescue ::GRPC::BadStatus => e
|
1692
1726
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1765,10 +1799,11 @@ module Google
|
|
1765
1799
|
# Customize the options with defaults
|
1766
1800
|
metadata = @config.rpcs.list_tags.metadata.to_h
|
1767
1801
|
|
1768
|
-
# Set x-goog-api-client
|
1802
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1769
1803
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1770
1804
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1771
1805
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1806
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1772
1807
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1773
1808
|
|
1774
1809
|
header_params = {}
|
@@ -1790,7 +1825,7 @@ module Google
|
|
1790
1825
|
@artifact_registry_stub.call_rpc :list_tags, request, options: options do |response, operation|
|
1791
1826
|
response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_tags, request, response, operation, options
|
1792
1827
|
yield response, operation if block_given?
|
1793
|
-
|
1828
|
+
throw :response, response
|
1794
1829
|
end
|
1795
1830
|
rescue ::GRPC::BadStatus => e
|
1796
1831
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1851,10 +1886,11 @@ module Google
|
|
1851
1886
|
# Customize the options with defaults
|
1852
1887
|
metadata = @config.rpcs.get_tag.metadata.to_h
|
1853
1888
|
|
1854
|
-
# Set x-goog-api-client
|
1889
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1855
1890
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1856
1891
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1857
1892
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1893
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1858
1894
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1859
1895
|
|
1860
1896
|
header_params = {}
|
@@ -1875,7 +1911,6 @@ module Google
|
|
1875
1911
|
|
1876
1912
|
@artifact_registry_stub.call_rpc :get_tag, request, options: options do |response, operation|
|
1877
1913
|
yield response, operation if block_given?
|
1878
|
-
return response
|
1879
1914
|
end
|
1880
1915
|
rescue ::GRPC::BadStatus => e
|
1881
1916
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1940,10 +1975,11 @@ module Google
|
|
1940
1975
|
# Customize the options with defaults
|
1941
1976
|
metadata = @config.rpcs.create_tag.metadata.to_h
|
1942
1977
|
|
1943
|
-
# Set x-goog-api-client
|
1978
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1944
1979
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1945
1980
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1946
1981
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
1982
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1947
1983
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1948
1984
|
|
1949
1985
|
header_params = {}
|
@@ -1964,7 +2000,6 @@ module Google
|
|
1964
2000
|
|
1965
2001
|
@artifact_registry_stub.call_rpc :create_tag, request, options: options do |response, operation|
|
1966
2002
|
yield response, operation if block_given?
|
1967
|
-
return response
|
1968
2003
|
end
|
1969
2004
|
rescue ::GRPC::BadStatus => e
|
1970
2005
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2029,10 +2064,11 @@ module Google
|
|
2029
2064
|
# Customize the options with defaults
|
2030
2065
|
metadata = @config.rpcs.update_tag.metadata.to_h
|
2031
2066
|
|
2032
|
-
# Set x-goog-api-client
|
2067
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2033
2068
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2034
2069
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2035
2070
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2071
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2036
2072
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2037
2073
|
|
2038
2074
|
header_params = {}
|
@@ -2053,7 +2089,6 @@ module Google
|
|
2053
2089
|
|
2054
2090
|
@artifact_registry_stub.call_rpc :update_tag, request, options: options do |response, operation|
|
2055
2091
|
yield response, operation if block_given?
|
2056
|
-
return response
|
2057
2092
|
end
|
2058
2093
|
rescue ::GRPC::BadStatus => e
|
2059
2094
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2114,10 +2149,11 @@ module Google
|
|
2114
2149
|
# Customize the options with defaults
|
2115
2150
|
metadata = @config.rpcs.delete_tag.metadata.to_h
|
2116
2151
|
|
2117
|
-
# Set x-goog-api-client
|
2152
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2118
2153
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2119
2154
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2120
2155
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2156
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2121
2157
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2122
2158
|
|
2123
2159
|
header_params = {}
|
@@ -2138,7 +2174,6 @@ module Google
|
|
2138
2174
|
|
2139
2175
|
@artifact_registry_stub.call_rpc :delete_tag, request, options: options do |response, operation|
|
2140
2176
|
yield response, operation if block_given?
|
2141
|
-
return response
|
2142
2177
|
end
|
2143
2178
|
rescue ::GRPC::BadStatus => e
|
2144
2179
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2211,10 +2246,11 @@ module Google
|
|
2211
2246
|
# Customize the options with defaults
|
2212
2247
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
2213
2248
|
|
2214
|
-
# Set x-goog-api-client
|
2249
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2215
2250
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2216
2251
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2217
2252
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2253
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2218
2254
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2219
2255
|
|
2220
2256
|
header_params = {}
|
@@ -2235,7 +2271,6 @@ module Google
|
|
2235
2271
|
|
2236
2272
|
@artifact_registry_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
2237
2273
|
yield response, operation if block_given?
|
2238
|
-
return response
|
2239
2274
|
end
|
2240
2275
|
rescue ::GRPC::BadStatus => e
|
2241
2276
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2300,10 +2335,11 @@ module Google
|
|
2300
2335
|
# Customize the options with defaults
|
2301
2336
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
2302
2337
|
|
2303
|
-
# Set x-goog-api-client
|
2338
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2304
2339
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2305
2340
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2306
2341
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2342
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2307
2343
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2308
2344
|
|
2309
2345
|
header_params = {}
|
@@ -2324,7 +2360,6 @@ module Google
|
|
2324
2360
|
|
2325
2361
|
@artifact_registry_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
2326
2362
|
yield response, operation if block_given?
|
2327
|
-
return response
|
2328
2363
|
end
|
2329
2364
|
rescue ::GRPC::BadStatus => e
|
2330
2365
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2391,10 +2426,11 @@ module Google
|
|
2391
2426
|
# Customize the options with defaults
|
2392
2427
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
2393
2428
|
|
2394
|
-
# Set x-goog-api-client
|
2429
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2395
2430
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2396
2431
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2397
2432
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2433
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2398
2434
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2399
2435
|
|
2400
2436
|
header_params = {}
|
@@ -2415,7 +2451,6 @@ module Google
|
|
2415
2451
|
|
2416
2452
|
@artifact_registry_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
2417
2453
|
yield response, operation if block_given?
|
2418
|
-
return response
|
2419
2454
|
end
|
2420
2455
|
rescue ::GRPC::BadStatus => e
|
2421
2456
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2476,10 +2511,11 @@ module Google
|
|
2476
2511
|
# Customize the options with defaults
|
2477
2512
|
metadata = @config.rpcs.get_project_settings.metadata.to_h
|
2478
2513
|
|
2479
|
-
# Set x-goog-api-client
|
2514
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2480
2515
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2481
2516
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2482
2517
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2518
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2483
2519
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2484
2520
|
|
2485
2521
|
header_params = {}
|
@@ -2500,7 +2536,6 @@ module Google
|
|
2500
2536
|
|
2501
2537
|
@artifact_registry_stub.call_rpc :get_project_settings, request, options: options do |response, operation|
|
2502
2538
|
yield response, operation if block_given?
|
2503
|
-
return response
|
2504
2539
|
end
|
2505
2540
|
rescue ::GRPC::BadStatus => e
|
2506
2541
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2563,10 +2598,11 @@ module Google
|
|
2563
2598
|
# Customize the options with defaults
|
2564
2599
|
metadata = @config.rpcs.update_project_settings.metadata.to_h
|
2565
2600
|
|
2566
|
-
# Set x-goog-api-client
|
2601
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2567
2602
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2568
2603
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2569
2604
|
gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
|
2605
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2570
2606
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2571
2607
|
|
2572
2608
|
header_params = {}
|
@@ -2587,7 +2623,6 @@ module Google
|
|
2587
2623
|
|
2588
2624
|
@artifact_registry_stub.call_rpc :update_project_settings, request, options: options do |response, operation|
|
2589
2625
|
yield response, operation if block_given?
|
2590
|
-
return response
|
2591
2626
|
end
|
2592
2627
|
rescue ::GRPC::BadStatus => e
|
2593
2628
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2676,6 +2711,11 @@ module Google
|
|
2676
2711
|
# default endpoint URL. The default value of nil uses the environment
|
2677
2712
|
# universe (usually the default "googleapis.com" universe).
|
2678
2713
|
# @return [::String,nil]
|
2714
|
+
# @!attribute [rw] logger
|
2715
|
+
# A custom logger to use for request/response debug logging, or the value
|
2716
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2717
|
+
# explicitly disable logging.
|
2718
|
+
# @return [::Logger,:default,nil]
|
2679
2719
|
#
|
2680
2720
|
class Configuration
|
2681
2721
|
extend ::Gapic::Config
|
@@ -2700,6 +2740,7 @@ module Google
|
|
2700
2740
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2701
2741
|
config_attr :quota_project, nil, ::String, nil
|
2702
2742
|
config_attr :universe_domain, nil, ::String, nil
|
2743
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2703
2744
|
|
2704
2745
|
# @private
|
2705
2746
|
def initialize parent_config = nil
|