google-cloud-apigee_registry-v1 0.8.0 → 0.9.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/apigee_registry/v1/provisioning/client.rb +40 -7
- data/lib/google/cloud/apigee_registry/v1/provisioning/operations.rb +25 -20
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/client.rb +40 -7
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/operations.rb +54 -42
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/service_stub.rb +38 -20
- data/lib/google/cloud/apigee_registry/v1/registry/client.rb +109 -71
- data/lib/google/cloud/apigee_registry/v1/registry/rest/client.rb +109 -71
- data/lib/google/cloud/apigee_registry/v1/registry/rest/service_stub.rb +294 -212
- data/lib/google/cloud/apigee_registry/v1/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
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The Registry service allows teams to manage descriptions of APIs.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "apigeeregistry.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -325,14 +328,26 @@ module Google
|
|
325
328
|
universe_domain: @config.universe_domain,
|
326
329
|
channel_args: @config.channel_args,
|
327
330
|
interceptors: @config.interceptors,
|
328
|
-
channel_pool_config: @config.channel_pool
|
331
|
+
channel_pool_config: @config.channel_pool,
|
332
|
+
logger: @config.logger
|
329
333
|
)
|
330
334
|
|
335
|
+
@registry_stub.stub_logger&.info do |entry|
|
336
|
+
entry.set_system_name
|
337
|
+
entry.set_service
|
338
|
+
entry.message = "Created client for #{entry.service}"
|
339
|
+
entry.set_credentials_fields credentials
|
340
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
341
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
342
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
343
|
+
end
|
344
|
+
|
331
345
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
332
346
|
config.credentials = credentials
|
333
347
|
config.quota_project = @quota_project_id
|
334
348
|
config.endpoint = @registry_stub.endpoint
|
335
349
|
config.universe_domain = @registry_stub.universe_domain
|
350
|
+
config.logger = @registry_stub.logger if config.respond_to? :logger=
|
336
351
|
end
|
337
352
|
|
338
353
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -340,6 +355,7 @@ module Google
|
|
340
355
|
config.quota_project = @quota_project_id
|
341
356
|
config.endpoint = @registry_stub.endpoint
|
342
357
|
config.universe_domain = @registry_stub.universe_domain
|
358
|
+
config.logger = @registry_stub.logger if config.respond_to? :logger=
|
343
359
|
end
|
344
360
|
end
|
345
361
|
|
@@ -357,6 +373,15 @@ module Google
|
|
357
373
|
#
|
358
374
|
attr_reader :iam_policy_client
|
359
375
|
|
376
|
+
##
|
377
|
+
# The logger used for request/response debug logging.
|
378
|
+
#
|
379
|
+
# @return [Logger]
|
380
|
+
#
|
381
|
+
def logger
|
382
|
+
@registry_stub.logger
|
383
|
+
end
|
384
|
+
|
360
385
|
# Service calls
|
361
386
|
|
362
387
|
##
|
@@ -433,10 +458,11 @@ module Google
|
|
433
458
|
# Customize the options with defaults
|
434
459
|
metadata = @config.rpcs.list_apis.metadata.to_h
|
435
460
|
|
436
|
-
# Set x-goog-api-client
|
461
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
437
462
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
438
463
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
439
464
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
465
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
440
466
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
441
467
|
|
442
468
|
header_params = {}
|
@@ -458,7 +484,7 @@ module Google
|
|
458
484
|
@registry_stub.call_rpc :list_apis, request, options: options do |response, operation|
|
459
485
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_apis, request, response, operation, options
|
460
486
|
yield response, operation if block_given?
|
461
|
-
|
487
|
+
throw :response, response
|
462
488
|
end
|
463
489
|
rescue ::GRPC::BadStatus => e
|
464
490
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -520,10 +546,11 @@ module Google
|
|
520
546
|
# Customize the options with defaults
|
521
547
|
metadata = @config.rpcs.get_api.metadata.to_h
|
522
548
|
|
523
|
-
# Set x-goog-api-client
|
549
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
524
550
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
525
551
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
526
552
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
553
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
527
554
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
528
555
|
|
529
556
|
header_params = {}
|
@@ -544,7 +571,6 @@ module Google
|
|
544
571
|
|
545
572
|
@registry_stub.call_rpc :get_api, request, options: options do |response, operation|
|
546
573
|
yield response, operation if block_given?
|
547
|
-
return response
|
548
574
|
end
|
549
575
|
rescue ::GRPC::BadStatus => e
|
550
576
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -616,10 +642,11 @@ module Google
|
|
616
642
|
# Customize the options with defaults
|
617
643
|
metadata = @config.rpcs.create_api.metadata.to_h
|
618
644
|
|
619
|
-
# Set x-goog-api-client
|
645
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
620
646
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
621
647
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
622
648
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
649
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
623
650
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
624
651
|
|
625
652
|
header_params = {}
|
@@ -640,7 +667,6 @@ module Google
|
|
640
667
|
|
641
668
|
@registry_stub.call_rpc :create_api, request, options: options do |response, operation|
|
642
669
|
yield response, operation if block_given?
|
643
|
-
return response
|
644
670
|
end
|
645
671
|
rescue ::GRPC::BadStatus => e
|
646
672
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -712,10 +738,11 @@ module Google
|
|
712
738
|
# Customize the options with defaults
|
713
739
|
metadata = @config.rpcs.update_api.metadata.to_h
|
714
740
|
|
715
|
-
# Set x-goog-api-client
|
741
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
716
742
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
717
743
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
718
744
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
745
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
719
746
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
720
747
|
|
721
748
|
header_params = {}
|
@@ -736,7 +763,6 @@ module Google
|
|
736
763
|
|
737
764
|
@registry_stub.call_rpc :update_api, request, options: options do |response, operation|
|
738
765
|
yield response, operation if block_given?
|
739
|
-
return response
|
740
766
|
end
|
741
767
|
rescue ::GRPC::BadStatus => e
|
742
768
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -802,10 +828,11 @@ module Google
|
|
802
828
|
# Customize the options with defaults
|
803
829
|
metadata = @config.rpcs.delete_api.metadata.to_h
|
804
830
|
|
805
|
-
# Set x-goog-api-client
|
831
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
806
832
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
807
833
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
808
834
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
835
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
809
836
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
810
837
|
|
811
838
|
header_params = {}
|
@@ -826,7 +853,6 @@ module Google
|
|
826
853
|
|
827
854
|
@registry_stub.call_rpc :delete_api, request, options: options do |response, operation|
|
828
855
|
yield response, operation if block_given?
|
829
|
-
return response
|
830
856
|
end
|
831
857
|
rescue ::GRPC::BadStatus => e
|
832
858
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -906,10 +932,11 @@ module Google
|
|
906
932
|
# Customize the options with defaults
|
907
933
|
metadata = @config.rpcs.list_api_versions.metadata.to_h
|
908
934
|
|
909
|
-
# Set x-goog-api-client
|
935
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
910
936
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
911
937
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
912
938
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
939
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
913
940
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
914
941
|
|
915
942
|
header_params = {}
|
@@ -931,7 +958,7 @@ module Google
|
|
931
958
|
@registry_stub.call_rpc :list_api_versions, request, options: options do |response, operation|
|
932
959
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_api_versions, request, response, operation, options
|
933
960
|
yield response, operation if block_given?
|
934
|
-
|
961
|
+
throw :response, response
|
935
962
|
end
|
936
963
|
rescue ::GRPC::BadStatus => e
|
937
964
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -993,10 +1020,11 @@ module Google
|
|
993
1020
|
# Customize the options with defaults
|
994
1021
|
metadata = @config.rpcs.get_api_version.metadata.to_h
|
995
1022
|
|
996
|
-
# Set x-goog-api-client
|
1023
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
997
1024
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
998
1025
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
999
1026
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1027
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1000
1028
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1001
1029
|
|
1002
1030
|
header_params = {}
|
@@ -1017,7 +1045,6 @@ module Google
|
|
1017
1045
|
|
1018
1046
|
@registry_stub.call_rpc :get_api_version, request, options: options do |response, operation|
|
1019
1047
|
yield response, operation if block_given?
|
1020
|
-
return response
|
1021
1048
|
end
|
1022
1049
|
rescue ::GRPC::BadStatus => e
|
1023
1050
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1089,10 +1116,11 @@ module Google
|
|
1089
1116
|
# Customize the options with defaults
|
1090
1117
|
metadata = @config.rpcs.create_api_version.metadata.to_h
|
1091
1118
|
|
1092
|
-
# Set x-goog-api-client
|
1119
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1093
1120
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1094
1121
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1095
1122
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1123
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1096
1124
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1097
1125
|
|
1098
1126
|
header_params = {}
|
@@ -1113,7 +1141,6 @@ module Google
|
|
1113
1141
|
|
1114
1142
|
@registry_stub.call_rpc :create_api_version, request, options: options do |response, operation|
|
1115
1143
|
yield response, operation if block_given?
|
1116
|
-
return response
|
1117
1144
|
end
|
1118
1145
|
rescue ::GRPC::BadStatus => e
|
1119
1146
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1185,10 +1212,11 @@ module Google
|
|
1185
1212
|
# Customize the options with defaults
|
1186
1213
|
metadata = @config.rpcs.update_api_version.metadata.to_h
|
1187
1214
|
|
1188
|
-
# Set x-goog-api-client
|
1215
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1189
1216
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1190
1217
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1191
1218
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1219
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1192
1220
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1193
1221
|
|
1194
1222
|
header_params = {}
|
@@ -1209,7 +1237,6 @@ module Google
|
|
1209
1237
|
|
1210
1238
|
@registry_stub.call_rpc :update_api_version, request, options: options do |response, operation|
|
1211
1239
|
yield response, operation if block_given?
|
1212
|
-
return response
|
1213
1240
|
end
|
1214
1241
|
rescue ::GRPC::BadStatus => e
|
1215
1242
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1275,10 +1302,11 @@ module Google
|
|
1275
1302
|
# Customize the options with defaults
|
1276
1303
|
metadata = @config.rpcs.delete_api_version.metadata.to_h
|
1277
1304
|
|
1278
|
-
# Set x-goog-api-client
|
1305
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1279
1306
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1280
1307
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1281
1308
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1309
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1282
1310
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
1311
|
|
1284
1312
|
header_params = {}
|
@@ -1299,7 +1327,6 @@ module Google
|
|
1299
1327
|
|
1300
1328
|
@registry_stub.call_rpc :delete_api_version, request, options: options do |response, operation|
|
1301
1329
|
yield response, operation if block_given?
|
1302
|
-
return response
|
1303
1330
|
end
|
1304
1331
|
rescue ::GRPC::BadStatus => e
|
1305
1332
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1379,10 +1406,11 @@ module Google
|
|
1379
1406
|
# Customize the options with defaults
|
1380
1407
|
metadata = @config.rpcs.list_api_specs.metadata.to_h
|
1381
1408
|
|
1382
|
-
# Set x-goog-api-client
|
1409
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1383
1410
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1384
1411
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1385
1412
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1413
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1386
1414
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1387
1415
|
|
1388
1416
|
header_params = {}
|
@@ -1404,7 +1432,7 @@ module Google
|
|
1404
1432
|
@registry_stub.call_rpc :list_api_specs, request, options: options do |response, operation|
|
1405
1433
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_api_specs, request, response, operation, options
|
1406
1434
|
yield response, operation if block_given?
|
1407
|
-
|
1435
|
+
throw :response, response
|
1408
1436
|
end
|
1409
1437
|
rescue ::GRPC::BadStatus => e
|
1410
1438
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1466,10 +1494,11 @@ module Google
|
|
1466
1494
|
# Customize the options with defaults
|
1467
1495
|
metadata = @config.rpcs.get_api_spec.metadata.to_h
|
1468
1496
|
|
1469
|
-
# Set x-goog-api-client
|
1497
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1470
1498
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1471
1499
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1472
1500
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1501
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1473
1502
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1474
1503
|
|
1475
1504
|
header_params = {}
|
@@ -1490,7 +1519,6 @@ module Google
|
|
1490
1519
|
|
1491
1520
|
@registry_stub.call_rpc :get_api_spec, request, options: options do |response, operation|
|
1492
1521
|
yield response, operation if block_given?
|
1493
|
-
return response
|
1494
1522
|
end
|
1495
1523
|
rescue ::GRPC::BadStatus => e
|
1496
1524
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1555,10 +1583,11 @@ module Google
|
|
1555
1583
|
# Customize the options with defaults
|
1556
1584
|
metadata = @config.rpcs.get_api_spec_contents.metadata.to_h
|
1557
1585
|
|
1558
|
-
# Set x-goog-api-client
|
1586
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1559
1587
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1560
1588
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1561
1589
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1590
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1562
1591
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1563
1592
|
|
1564
1593
|
header_params = {}
|
@@ -1579,7 +1608,6 @@ module Google
|
|
1579
1608
|
|
1580
1609
|
@registry_stub.call_rpc :get_api_spec_contents, request, options: options do |response, operation|
|
1581
1610
|
yield response, operation if block_given?
|
1582
|
-
return response
|
1583
1611
|
end
|
1584
1612
|
rescue ::GRPC::BadStatus => e
|
1585
1613
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1651,10 +1679,11 @@ module Google
|
|
1651
1679
|
# Customize the options with defaults
|
1652
1680
|
metadata = @config.rpcs.create_api_spec.metadata.to_h
|
1653
1681
|
|
1654
|
-
# Set x-goog-api-client
|
1682
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1655
1683
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1656
1684
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1657
1685
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1686
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1658
1687
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1659
1688
|
|
1660
1689
|
header_params = {}
|
@@ -1675,7 +1704,6 @@ module Google
|
|
1675
1704
|
|
1676
1705
|
@registry_stub.call_rpc :create_api_spec, request, options: options do |response, operation|
|
1677
1706
|
yield response, operation if block_given?
|
1678
|
-
return response
|
1679
1707
|
end
|
1680
1708
|
rescue ::GRPC::BadStatus => e
|
1681
1709
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1747,10 +1775,11 @@ module Google
|
|
1747
1775
|
# Customize the options with defaults
|
1748
1776
|
metadata = @config.rpcs.update_api_spec.metadata.to_h
|
1749
1777
|
|
1750
|
-
# Set x-goog-api-client
|
1778
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1751
1779
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1752
1780
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1753
1781
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1782
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1754
1783
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1755
1784
|
|
1756
1785
|
header_params = {}
|
@@ -1771,7 +1800,6 @@ module Google
|
|
1771
1800
|
|
1772
1801
|
@registry_stub.call_rpc :update_api_spec, request, options: options do |response, operation|
|
1773
1802
|
yield response, operation if block_given?
|
1774
|
-
return response
|
1775
1803
|
end
|
1776
1804
|
rescue ::GRPC::BadStatus => e
|
1777
1805
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1837,10 +1865,11 @@ module Google
|
|
1837
1865
|
# Customize the options with defaults
|
1838
1866
|
metadata = @config.rpcs.delete_api_spec.metadata.to_h
|
1839
1867
|
|
1840
|
-
# Set x-goog-api-client
|
1868
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1841
1869
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1842
1870
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1843
1871
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1872
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1844
1873
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1845
1874
|
|
1846
1875
|
header_params = {}
|
@@ -1861,7 +1890,6 @@ module Google
|
|
1861
1890
|
|
1862
1891
|
@registry_stub.call_rpc :delete_api_spec, request, options: options do |response, operation|
|
1863
1892
|
yield response, operation if block_given?
|
1864
|
-
return response
|
1865
1893
|
end
|
1866
1894
|
rescue ::GRPC::BadStatus => e
|
1867
1895
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1925,10 +1953,11 @@ module Google
|
|
1925
1953
|
# Customize the options with defaults
|
1926
1954
|
metadata = @config.rpcs.tag_api_spec_revision.metadata.to_h
|
1927
1955
|
|
1928
|
-
# Set x-goog-api-client
|
1956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1929
1957
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1930
1958
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1931
1959
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
1960
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1932
1961
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1933
1962
|
|
1934
1963
|
header_params = {}
|
@@ -1949,7 +1978,6 @@ module Google
|
|
1949
1978
|
|
1950
1979
|
@registry_stub.call_rpc :tag_api_spec_revision, request, options: options do |response, operation|
|
1951
1980
|
yield response, operation if block_given?
|
1952
|
-
return response
|
1953
1981
|
end
|
1954
1982
|
rescue ::GRPC::BadStatus => e
|
1955
1983
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2020,10 +2048,11 @@ module Google
|
|
2020
2048
|
# Customize the options with defaults
|
2021
2049
|
metadata = @config.rpcs.list_api_spec_revisions.metadata.to_h
|
2022
2050
|
|
2023
|
-
# Set x-goog-api-client
|
2051
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2024
2052
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2025
2053
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2026
2054
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2055
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2027
2056
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2028
2057
|
|
2029
2058
|
header_params = {}
|
@@ -2045,7 +2074,7 @@ module Google
|
|
2045
2074
|
@registry_stub.call_rpc :list_api_spec_revisions, request, options: options do |response, operation|
|
2046
2075
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_api_spec_revisions, request, response, operation, options
|
2047
2076
|
yield response, operation if block_given?
|
2048
|
-
|
2077
|
+
throw :response, response
|
2049
2078
|
end
|
2050
2079
|
rescue ::GRPC::BadStatus => e
|
2051
2080
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2112,10 +2141,11 @@ module Google
|
|
2112
2141
|
# Customize the options with defaults
|
2113
2142
|
metadata = @config.rpcs.rollback_api_spec.metadata.to_h
|
2114
2143
|
|
2115
|
-
# Set x-goog-api-client
|
2144
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2116
2145
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2117
2146
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2118
2147
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2148
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2119
2149
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2120
2150
|
|
2121
2151
|
header_params = {}
|
@@ -2136,7 +2166,6 @@ module Google
|
|
2136
2166
|
|
2137
2167
|
@registry_stub.call_rpc :rollback_api_spec, request, options: options do |response, operation|
|
2138
2168
|
yield response, operation if block_given?
|
2139
|
-
return response
|
2140
2169
|
end
|
2141
2170
|
rescue ::GRPC::BadStatus => e
|
2142
2171
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2201,10 +2230,11 @@ module Google
|
|
2201
2230
|
# Customize the options with defaults
|
2202
2231
|
metadata = @config.rpcs.delete_api_spec_revision.metadata.to_h
|
2203
2232
|
|
2204
|
-
# Set x-goog-api-client
|
2233
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2205
2234
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2206
2235
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2207
2236
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2237
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2208
2238
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2209
2239
|
|
2210
2240
|
header_params = {}
|
@@ -2225,7 +2255,6 @@ module Google
|
|
2225
2255
|
|
2226
2256
|
@registry_stub.call_rpc :delete_api_spec_revision, request, options: options do |response, operation|
|
2227
2257
|
yield response, operation if block_given?
|
2228
|
-
return response
|
2229
2258
|
end
|
2230
2259
|
rescue ::GRPC::BadStatus => e
|
2231
2260
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2305,10 +2334,11 @@ module Google
|
|
2305
2334
|
# Customize the options with defaults
|
2306
2335
|
metadata = @config.rpcs.list_api_deployments.metadata.to_h
|
2307
2336
|
|
2308
|
-
# Set x-goog-api-client
|
2337
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2309
2338
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2310
2339
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2311
2340
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2341
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2312
2342
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2313
2343
|
|
2314
2344
|
header_params = {}
|
@@ -2330,7 +2360,7 @@ module Google
|
|
2330
2360
|
@registry_stub.call_rpc :list_api_deployments, request, options: options do |response, operation|
|
2331
2361
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_api_deployments, request, response, operation, options
|
2332
2362
|
yield response, operation if block_given?
|
2333
|
-
|
2363
|
+
throw :response, response
|
2334
2364
|
end
|
2335
2365
|
rescue ::GRPC::BadStatus => e
|
2336
2366
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2392,10 +2422,11 @@ module Google
|
|
2392
2422
|
# Customize the options with defaults
|
2393
2423
|
metadata = @config.rpcs.get_api_deployment.metadata.to_h
|
2394
2424
|
|
2395
|
-
# Set x-goog-api-client
|
2425
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2396
2426
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2397
2427
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2398
2428
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2429
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2399
2430
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2400
2431
|
|
2401
2432
|
header_params = {}
|
@@ -2416,7 +2447,6 @@ module Google
|
|
2416
2447
|
|
2417
2448
|
@registry_stub.call_rpc :get_api_deployment, request, options: options do |response, operation|
|
2418
2449
|
yield response, operation if block_given?
|
2419
|
-
return response
|
2420
2450
|
end
|
2421
2451
|
rescue ::GRPC::BadStatus => e
|
2422
2452
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2488,10 +2518,11 @@ module Google
|
|
2488
2518
|
# Customize the options with defaults
|
2489
2519
|
metadata = @config.rpcs.create_api_deployment.metadata.to_h
|
2490
2520
|
|
2491
|
-
# Set x-goog-api-client
|
2521
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2492
2522
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2493
2523
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2494
2524
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2525
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2495
2526
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2496
2527
|
|
2497
2528
|
header_params = {}
|
@@ -2512,7 +2543,6 @@ module Google
|
|
2512
2543
|
|
2513
2544
|
@registry_stub.call_rpc :create_api_deployment, request, options: options do |response, operation|
|
2514
2545
|
yield response, operation if block_given?
|
2515
|
-
return response
|
2516
2546
|
end
|
2517
2547
|
rescue ::GRPC::BadStatus => e
|
2518
2548
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2584,10 +2614,11 @@ module Google
|
|
2584
2614
|
# Customize the options with defaults
|
2585
2615
|
metadata = @config.rpcs.update_api_deployment.metadata.to_h
|
2586
2616
|
|
2587
|
-
# Set x-goog-api-client
|
2617
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2588
2618
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2589
2619
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2590
2620
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2621
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2591
2622
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2592
2623
|
|
2593
2624
|
header_params = {}
|
@@ -2608,7 +2639,6 @@ module Google
|
|
2608
2639
|
|
2609
2640
|
@registry_stub.call_rpc :update_api_deployment, request, options: options do |response, operation|
|
2610
2641
|
yield response, operation if block_given?
|
2611
|
-
return response
|
2612
2642
|
end
|
2613
2643
|
rescue ::GRPC::BadStatus => e
|
2614
2644
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2674,10 +2704,11 @@ module Google
|
|
2674
2704
|
# Customize the options with defaults
|
2675
2705
|
metadata = @config.rpcs.delete_api_deployment.metadata.to_h
|
2676
2706
|
|
2677
|
-
# Set x-goog-api-client
|
2707
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2678
2708
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2679
2709
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2680
2710
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2711
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2681
2712
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2682
2713
|
|
2683
2714
|
header_params = {}
|
@@ -2698,7 +2729,6 @@ module Google
|
|
2698
2729
|
|
2699
2730
|
@registry_stub.call_rpc :delete_api_deployment, request, options: options do |response, operation|
|
2700
2731
|
yield response, operation if block_given?
|
2701
|
-
return response
|
2702
2732
|
end
|
2703
2733
|
rescue ::GRPC::BadStatus => e
|
2704
2734
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2763,10 +2793,11 @@ module Google
|
|
2763
2793
|
# Customize the options with defaults
|
2764
2794
|
metadata = @config.rpcs.tag_api_deployment_revision.metadata.to_h
|
2765
2795
|
|
2766
|
-
# Set x-goog-api-client
|
2796
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2767
2797
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2768
2798
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2769
2799
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2800
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2770
2801
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2771
2802
|
|
2772
2803
|
header_params = {}
|
@@ -2787,7 +2818,6 @@ module Google
|
|
2787
2818
|
|
2788
2819
|
@registry_stub.call_rpc :tag_api_deployment_revision, request, options: options do |response, operation|
|
2789
2820
|
yield response, operation if block_given?
|
2790
|
-
return response
|
2791
2821
|
end
|
2792
2822
|
rescue ::GRPC::BadStatus => e
|
2793
2823
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2858,10 +2888,11 @@ module Google
|
|
2858
2888
|
# Customize the options with defaults
|
2859
2889
|
metadata = @config.rpcs.list_api_deployment_revisions.metadata.to_h
|
2860
2890
|
|
2861
|
-
# Set x-goog-api-client
|
2891
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2862
2892
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2863
2893
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2864
2894
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2895
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2865
2896
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2866
2897
|
|
2867
2898
|
header_params = {}
|
@@ -2883,7 +2914,7 @@ module Google
|
|
2883
2914
|
@registry_stub.call_rpc :list_api_deployment_revisions, request, options: options do |response, operation|
|
2884
2915
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_api_deployment_revisions, request, response, operation, options
|
2885
2916
|
yield response, operation if block_given?
|
2886
|
-
|
2917
|
+
throw :response, response
|
2887
2918
|
end
|
2888
2919
|
rescue ::GRPC::BadStatus => e
|
2889
2920
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2950,10 +2981,11 @@ module Google
|
|
2950
2981
|
# Customize the options with defaults
|
2951
2982
|
metadata = @config.rpcs.rollback_api_deployment.metadata.to_h
|
2952
2983
|
|
2953
|
-
# Set x-goog-api-client
|
2984
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2954
2985
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2955
2986
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2956
2987
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
2988
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2957
2989
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2958
2990
|
|
2959
2991
|
header_params = {}
|
@@ -2974,7 +3006,6 @@ module Google
|
|
2974
3006
|
|
2975
3007
|
@registry_stub.call_rpc :rollback_api_deployment, request, options: options do |response, operation|
|
2976
3008
|
yield response, operation if block_given?
|
2977
|
-
return response
|
2978
3009
|
end
|
2979
3010
|
rescue ::GRPC::BadStatus => e
|
2980
3011
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3039,10 +3070,11 @@ module Google
|
|
3039
3070
|
# Customize the options with defaults
|
3040
3071
|
metadata = @config.rpcs.delete_api_deployment_revision.metadata.to_h
|
3041
3072
|
|
3042
|
-
# Set x-goog-api-client
|
3073
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3043
3074
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3044
3075
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3045
3076
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3077
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3046
3078
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3047
3079
|
|
3048
3080
|
header_params = {}
|
@@ -3063,7 +3095,6 @@ module Google
|
|
3063
3095
|
|
3064
3096
|
@registry_stub.call_rpc :delete_api_deployment_revision, request, options: options do |response, operation|
|
3065
3097
|
yield response, operation if block_given?
|
3066
|
-
return response
|
3067
3098
|
end
|
3068
3099
|
rescue ::GRPC::BadStatus => e
|
3069
3100
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3143,10 +3174,11 @@ module Google
|
|
3143
3174
|
# Customize the options with defaults
|
3144
3175
|
metadata = @config.rpcs.list_artifacts.metadata.to_h
|
3145
3176
|
|
3146
|
-
# Set x-goog-api-client
|
3177
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3147
3178
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3148
3179
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3149
3180
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3181
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3150
3182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3151
3183
|
|
3152
3184
|
header_params = {}
|
@@ -3168,7 +3200,7 @@ module Google
|
|
3168
3200
|
@registry_stub.call_rpc :list_artifacts, request, options: options do |response, operation|
|
3169
3201
|
response = ::Gapic::PagedEnumerable.new @registry_stub, :list_artifacts, request, response, operation, options
|
3170
3202
|
yield response, operation if block_given?
|
3171
|
-
|
3203
|
+
throw :response, response
|
3172
3204
|
end
|
3173
3205
|
rescue ::GRPC::BadStatus => e
|
3174
3206
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3230,10 +3262,11 @@ module Google
|
|
3230
3262
|
# Customize the options with defaults
|
3231
3263
|
metadata = @config.rpcs.get_artifact.metadata.to_h
|
3232
3264
|
|
3233
|
-
# Set x-goog-api-client
|
3265
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3234
3266
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3235
3267
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3236
3268
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3269
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3237
3270
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3238
3271
|
|
3239
3272
|
header_params = {}
|
@@ -3254,7 +3287,6 @@ module Google
|
|
3254
3287
|
|
3255
3288
|
@registry_stub.call_rpc :get_artifact, request, options: options do |response, operation|
|
3256
3289
|
yield response, operation if block_given?
|
3257
|
-
return response
|
3258
3290
|
end
|
3259
3291
|
rescue ::GRPC::BadStatus => e
|
3260
3292
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3319,10 +3351,11 @@ module Google
|
|
3319
3351
|
# Customize the options with defaults
|
3320
3352
|
metadata = @config.rpcs.get_artifact_contents.metadata.to_h
|
3321
3353
|
|
3322
|
-
# Set x-goog-api-client
|
3354
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3323
3355
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3324
3356
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3325
3357
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3358
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3326
3359
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3327
3360
|
|
3328
3361
|
header_params = {}
|
@@ -3343,7 +3376,6 @@ module Google
|
|
3343
3376
|
|
3344
3377
|
@registry_stub.call_rpc :get_artifact_contents, request, options: options do |response, operation|
|
3345
3378
|
yield response, operation if block_given?
|
3346
|
-
return response
|
3347
3379
|
end
|
3348
3380
|
rescue ::GRPC::BadStatus => e
|
3349
3381
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3415,10 +3447,11 @@ module Google
|
|
3415
3447
|
# Customize the options with defaults
|
3416
3448
|
metadata = @config.rpcs.create_artifact.metadata.to_h
|
3417
3449
|
|
3418
|
-
# Set x-goog-api-client
|
3450
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3419
3451
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3420
3452
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3421
3453
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3454
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3422
3455
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3423
3456
|
|
3424
3457
|
header_params = {}
|
@@ -3439,7 +3472,6 @@ module Google
|
|
3439
3472
|
|
3440
3473
|
@registry_stub.call_rpc :create_artifact, request, options: options do |response, operation|
|
3441
3474
|
yield response, operation if block_given?
|
3442
|
-
return response
|
3443
3475
|
end
|
3444
3476
|
rescue ::GRPC::BadStatus => e
|
3445
3477
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3503,10 +3535,11 @@ module Google
|
|
3503
3535
|
# Customize the options with defaults
|
3504
3536
|
metadata = @config.rpcs.replace_artifact.metadata.to_h
|
3505
3537
|
|
3506
|
-
# Set x-goog-api-client
|
3538
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3507
3539
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3508
3540
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3509
3541
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3542
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3510
3543
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3511
3544
|
|
3512
3545
|
header_params = {}
|
@@ -3527,7 +3560,6 @@ module Google
|
|
3527
3560
|
|
3528
3561
|
@registry_stub.call_rpc :replace_artifact, request, options: options do |response, operation|
|
3529
3562
|
yield response, operation if block_given?
|
3530
|
-
return response
|
3531
3563
|
end
|
3532
3564
|
rescue ::GRPC::BadStatus => e
|
3533
3565
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3589,10 +3621,11 @@ module Google
|
|
3589
3621
|
# Customize the options with defaults
|
3590
3622
|
metadata = @config.rpcs.delete_artifact.metadata.to_h
|
3591
3623
|
|
3592
|
-
# Set x-goog-api-client
|
3624
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3593
3625
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3594
3626
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3595
3627
|
gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
|
3628
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3596
3629
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3597
3630
|
|
3598
3631
|
header_params = {}
|
@@ -3613,7 +3646,6 @@ module Google
|
|
3613
3646
|
|
3614
3647
|
@registry_stub.call_rpc :delete_artifact, request, options: options do |response, operation|
|
3615
3648
|
yield response, operation if block_given?
|
3616
|
-
return response
|
3617
3649
|
end
|
3618
3650
|
rescue ::GRPC::BadStatus => e
|
3619
3651
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3702,6 +3734,11 @@ module Google
|
|
3702
3734
|
# default endpoint URL. The default value of nil uses the environment
|
3703
3735
|
# universe (usually the default "googleapis.com" universe).
|
3704
3736
|
# @return [::String,nil]
|
3737
|
+
# @!attribute [rw] logger
|
3738
|
+
# A custom logger to use for request/response debug logging, or the value
|
3739
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3740
|
+
# explicitly disable logging.
|
3741
|
+
# @return [::Logger,:default,nil]
|
3705
3742
|
#
|
3706
3743
|
class Configuration
|
3707
3744
|
extend ::Gapic::Config
|
@@ -3726,6 +3763,7 @@ module Google
|
|
3726
3763
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3727
3764
|
config_attr :quota_project, nil, ::String, nil
|
3728
3765
|
config_attr :universe_domain, nil, ::String, nil
|
3766
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
3729
3767
|
|
3730
3768
|
# @private
|
3731
3769
|
def initialize parent_config = nil
|