google-cloud-apigee_registry-v1 0.5.0 → 0.7.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/AUTHENTICATION.md +72 -99
- data/lib/google/cloud/apigee_registry/v1/provisioning/client.rb +44 -9
- data/lib/google/cloud/apigee_registry/v1/provisioning/operations.rb +38 -7
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/client.rb +98 -7
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/operations.rb +108 -8
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/service_stub.rb +14 -2
- data/lib/google/cloud/apigee_registry/v1/registry/client.rb +43 -9
- data/lib/google/cloud/apigee_registry/v1/registry/rest/client.rb +623 -7
- data/lib/google/cloud/apigee_registry/v1/registry/rest/service_stub.rb +14 -2
- data/lib/google/cloud/apigee_registry/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +9 -9
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# The Registry service allows teams to manage descriptions of APIs.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
DEFAULT_ENDPOINT_TEMPLATE = "apigeeregistry.$UNIVERSE_DOMAIN$"
|
39
|
+
|
37
40
|
include Paths
|
38
41
|
|
39
42
|
# @private
|
@@ -263,6 +266,15 @@ module Google
|
|
263
266
|
@config
|
264
267
|
end
|
265
268
|
|
269
|
+
##
|
270
|
+
# The effective universe domain
|
271
|
+
#
|
272
|
+
# @return [String]
|
273
|
+
#
|
274
|
+
def universe_domain
|
275
|
+
@registry_stub.universe_domain
|
276
|
+
end
|
277
|
+
|
266
278
|
##
|
267
279
|
# Create a new Registry REST client object.
|
268
280
|
#
|
@@ -290,8 +302,9 @@ module Google
|
|
290
302
|
credentials = @config.credentials
|
291
303
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
292
304
|
# but only if the default endpoint does not have a region prefix.
|
293
|
-
enable_self_signed_jwt = @config.endpoint
|
294
|
-
|
305
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
306
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
307
|
+
!@config.endpoint.split(".").first.include?("-"))
|
295
308
|
credentials ||= Credentials.default scope: @config.scope,
|
296
309
|
enable_self_signed_jwt: enable_self_signed_jwt
|
297
310
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -305,6 +318,7 @@ module Google
|
|
305
318
|
config.credentials = credentials
|
306
319
|
config.quota_project = @quota_project_id
|
307
320
|
config.endpoint = @config.endpoint
|
321
|
+
config.universe_domain = @config.universe_domain
|
308
322
|
config.bindings_override = @config.bindings_override
|
309
323
|
end
|
310
324
|
|
@@ -312,10 +326,16 @@ module Google
|
|
312
326
|
config.credentials = credentials
|
313
327
|
config.quota_project = @quota_project_id
|
314
328
|
config.endpoint = @config.endpoint
|
329
|
+
config.universe_domain = @config.universe_domain
|
315
330
|
config.bindings_override = @config.bindings_override
|
316
331
|
end
|
317
332
|
|
318
|
-
@registry_stub = ::Google::Cloud::ApigeeRegistry::V1::Registry::Rest::ServiceStub.new
|
333
|
+
@registry_stub = ::Google::Cloud::ApigeeRegistry::V1::Registry::Rest::ServiceStub.new(
|
334
|
+
endpoint: @config.endpoint,
|
335
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
336
|
+
universe_domain: @config.universe_domain,
|
337
|
+
credentials: credentials
|
338
|
+
)
|
319
339
|
end
|
320
340
|
|
321
341
|
##
|
@@ -376,6 +396,26 @@ module Google
|
|
376
396
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::Api>]
|
377
397
|
#
|
378
398
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
399
|
+
#
|
400
|
+
# @example Basic example
|
401
|
+
# require "google/cloud/apigee_registry/v1"
|
402
|
+
#
|
403
|
+
# # Create a client object. The client can be reused for multiple calls.
|
404
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
405
|
+
#
|
406
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
407
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApisRequest.new
|
408
|
+
#
|
409
|
+
# # Call the list_apis method.
|
410
|
+
# result = client.list_apis request
|
411
|
+
#
|
412
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
413
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
414
|
+
# result.each do |item|
|
415
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::Api.
|
416
|
+
# p item
|
417
|
+
# end
|
418
|
+
#
|
379
419
|
def list_apis request, options = nil
|
380
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
381
421
|
|
@@ -440,6 +480,22 @@ module Google
|
|
440
480
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Api]
|
441
481
|
#
|
442
482
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
483
|
+
#
|
484
|
+
# @example Basic example
|
485
|
+
# require "google/cloud/apigee_registry/v1"
|
486
|
+
#
|
487
|
+
# # Create a client object. The client can be reused for multiple calls.
|
488
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
489
|
+
#
|
490
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
491
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiRequest.new
|
492
|
+
#
|
493
|
+
# # Call the get_api method.
|
494
|
+
# result = client.get_api request
|
495
|
+
#
|
496
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Api.
|
497
|
+
# p result
|
498
|
+
#
|
443
499
|
def get_api request, options = nil
|
444
500
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
445
501
|
|
@@ -513,6 +569,22 @@ module Google
|
|
513
569
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Api]
|
514
570
|
#
|
515
571
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
572
|
+
#
|
573
|
+
# @example Basic example
|
574
|
+
# require "google/cloud/apigee_registry/v1"
|
575
|
+
#
|
576
|
+
# # Create a client object. The client can be reused for multiple calls.
|
577
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
578
|
+
#
|
579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
580
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiRequest.new
|
581
|
+
#
|
582
|
+
# # Call the create_api method.
|
583
|
+
# result = client.create_api request
|
584
|
+
#
|
585
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Api.
|
586
|
+
# p result
|
587
|
+
#
|
516
588
|
def create_api request, options = nil
|
517
589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
518
590
|
|
@@ -586,6 +658,22 @@ module Google
|
|
586
658
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Api]
|
587
659
|
#
|
588
660
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
661
|
+
#
|
662
|
+
# @example Basic example
|
663
|
+
# require "google/cloud/apigee_registry/v1"
|
664
|
+
#
|
665
|
+
# # Create a client object. The client can be reused for multiple calls.
|
666
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
667
|
+
#
|
668
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
669
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiRequest.new
|
670
|
+
#
|
671
|
+
# # Call the update_api method.
|
672
|
+
# result = client.update_api request
|
673
|
+
#
|
674
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Api.
|
675
|
+
# p result
|
676
|
+
#
|
589
677
|
def update_api request, options = nil
|
590
678
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
591
679
|
|
@@ -653,6 +741,22 @@ module Google
|
|
653
741
|
# @return [::Google::Protobuf::Empty]
|
654
742
|
#
|
655
743
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
744
|
+
#
|
745
|
+
# @example Basic example
|
746
|
+
# require "google/cloud/apigee_registry/v1"
|
747
|
+
#
|
748
|
+
# # Create a client object. The client can be reused for multiple calls.
|
749
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
750
|
+
#
|
751
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
752
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiRequest.new
|
753
|
+
#
|
754
|
+
# # Call the delete_api method.
|
755
|
+
# result = client.delete_api request
|
756
|
+
#
|
757
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
758
|
+
# p result
|
759
|
+
#
|
656
760
|
def delete_api request, options = nil
|
657
761
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
658
762
|
|
@@ -730,6 +834,26 @@ module Google
|
|
730
834
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiVersion>]
|
731
835
|
#
|
732
836
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
837
|
+
#
|
838
|
+
# @example Basic example
|
839
|
+
# require "google/cloud/apigee_registry/v1"
|
840
|
+
#
|
841
|
+
# # Create a client object. The client can be reused for multiple calls.
|
842
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
843
|
+
#
|
844
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
845
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiVersionsRequest.new
|
846
|
+
#
|
847
|
+
# # Call the list_api_versions method.
|
848
|
+
# result = client.list_api_versions request
|
849
|
+
#
|
850
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
851
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
852
|
+
# result.each do |item|
|
853
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
854
|
+
# p item
|
855
|
+
# end
|
856
|
+
#
|
733
857
|
def list_api_versions request, options = nil
|
734
858
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
735
859
|
|
@@ -794,6 +918,22 @@ module Google
|
|
794
918
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiVersion]
|
795
919
|
#
|
796
920
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
921
|
+
#
|
922
|
+
# @example Basic example
|
923
|
+
# require "google/cloud/apigee_registry/v1"
|
924
|
+
#
|
925
|
+
# # Create a client object. The client can be reused for multiple calls.
|
926
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
927
|
+
#
|
928
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
929
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiVersionRequest.new
|
930
|
+
#
|
931
|
+
# # Call the get_api_version method.
|
932
|
+
# result = client.get_api_version request
|
933
|
+
#
|
934
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
935
|
+
# p result
|
936
|
+
#
|
797
937
|
def get_api_version request, options = nil
|
798
938
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
799
939
|
|
@@ -867,6 +1007,22 @@ module Google
|
|
867
1007
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiVersion]
|
868
1008
|
#
|
869
1009
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1010
|
+
#
|
1011
|
+
# @example Basic example
|
1012
|
+
# require "google/cloud/apigee_registry/v1"
|
1013
|
+
#
|
1014
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1015
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1016
|
+
#
|
1017
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1018
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiVersionRequest.new
|
1019
|
+
#
|
1020
|
+
# # Call the create_api_version method.
|
1021
|
+
# result = client.create_api_version request
|
1022
|
+
#
|
1023
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
1024
|
+
# p result
|
1025
|
+
#
|
870
1026
|
def create_api_version request, options = nil
|
871
1027
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
872
1028
|
|
@@ -940,6 +1096,22 @@ module Google
|
|
940
1096
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiVersion]
|
941
1097
|
#
|
942
1098
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1099
|
+
#
|
1100
|
+
# @example Basic example
|
1101
|
+
# require "google/cloud/apigee_registry/v1"
|
1102
|
+
#
|
1103
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1104
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1105
|
+
#
|
1106
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1107
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiVersionRequest.new
|
1108
|
+
#
|
1109
|
+
# # Call the update_api_version method.
|
1110
|
+
# result = client.update_api_version request
|
1111
|
+
#
|
1112
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
1113
|
+
# p result
|
1114
|
+
#
|
943
1115
|
def update_api_version request, options = nil
|
944
1116
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
945
1117
|
|
@@ -1007,6 +1179,22 @@ module Google
|
|
1007
1179
|
# @return [::Google::Protobuf::Empty]
|
1008
1180
|
#
|
1009
1181
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1182
|
+
#
|
1183
|
+
# @example Basic example
|
1184
|
+
# require "google/cloud/apigee_registry/v1"
|
1185
|
+
#
|
1186
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1187
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1188
|
+
#
|
1189
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1190
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiVersionRequest.new
|
1191
|
+
#
|
1192
|
+
# # Call the delete_api_version method.
|
1193
|
+
# result = client.delete_api_version request
|
1194
|
+
#
|
1195
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1196
|
+
# p result
|
1197
|
+
#
|
1010
1198
|
def delete_api_version request, options = nil
|
1011
1199
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1012
1200
|
|
@@ -1084,6 +1272,26 @@ module Google
|
|
1084
1272
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiSpec>]
|
1085
1273
|
#
|
1086
1274
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1275
|
+
#
|
1276
|
+
# @example Basic example
|
1277
|
+
# require "google/cloud/apigee_registry/v1"
|
1278
|
+
#
|
1279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1280
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1281
|
+
#
|
1282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1283
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiSpecsRequest.new
|
1284
|
+
#
|
1285
|
+
# # Call the list_api_specs method.
|
1286
|
+
# result = client.list_api_specs request
|
1287
|
+
#
|
1288
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1289
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1290
|
+
# result.each do |item|
|
1291
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1292
|
+
# p item
|
1293
|
+
# end
|
1294
|
+
#
|
1087
1295
|
def list_api_specs request, options = nil
|
1088
1296
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1089
1297
|
|
@@ -1148,6 +1356,22 @@ module Google
|
|
1148
1356
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1149
1357
|
#
|
1150
1358
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1359
|
+
#
|
1360
|
+
# @example Basic example
|
1361
|
+
# require "google/cloud/apigee_registry/v1"
|
1362
|
+
#
|
1363
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1364
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1365
|
+
#
|
1366
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1367
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiSpecRequest.new
|
1368
|
+
#
|
1369
|
+
# # Call the get_api_spec method.
|
1370
|
+
# result = client.get_api_spec request
|
1371
|
+
#
|
1372
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1373
|
+
# p result
|
1374
|
+
#
|
1151
1375
|
def get_api_spec request, options = nil
|
1152
1376
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1153
1377
|
|
@@ -1214,6 +1438,22 @@ module Google
|
|
1214
1438
|
# @return [::Google::Api::HttpBody]
|
1215
1439
|
#
|
1216
1440
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1441
|
+
#
|
1442
|
+
# @example Basic example
|
1443
|
+
# require "google/cloud/apigee_registry/v1"
|
1444
|
+
#
|
1445
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1446
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1447
|
+
#
|
1448
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1449
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiSpecContentsRequest.new
|
1450
|
+
#
|
1451
|
+
# # Call the get_api_spec_contents method.
|
1452
|
+
# result = client.get_api_spec_contents request
|
1453
|
+
#
|
1454
|
+
# # The returned object is of type Google::Api::HttpBody.
|
1455
|
+
# p result
|
1456
|
+
#
|
1217
1457
|
def get_api_spec_contents request, options = nil
|
1218
1458
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1219
1459
|
|
@@ -1287,6 +1527,22 @@ module Google
|
|
1287
1527
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1288
1528
|
#
|
1289
1529
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1530
|
+
#
|
1531
|
+
# @example Basic example
|
1532
|
+
# require "google/cloud/apigee_registry/v1"
|
1533
|
+
#
|
1534
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1535
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1536
|
+
#
|
1537
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1538
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiSpecRequest.new
|
1539
|
+
#
|
1540
|
+
# # Call the create_api_spec method.
|
1541
|
+
# result = client.create_api_spec request
|
1542
|
+
#
|
1543
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1544
|
+
# p result
|
1545
|
+
#
|
1290
1546
|
def create_api_spec request, options = nil
|
1291
1547
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1292
1548
|
|
@@ -1360,6 +1616,22 @@ module Google
|
|
1360
1616
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1361
1617
|
#
|
1362
1618
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1619
|
+
#
|
1620
|
+
# @example Basic example
|
1621
|
+
# require "google/cloud/apigee_registry/v1"
|
1622
|
+
#
|
1623
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1624
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1625
|
+
#
|
1626
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1627
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiSpecRequest.new
|
1628
|
+
#
|
1629
|
+
# # Call the update_api_spec method.
|
1630
|
+
# result = client.update_api_spec request
|
1631
|
+
#
|
1632
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1633
|
+
# p result
|
1634
|
+
#
|
1363
1635
|
def update_api_spec request, options = nil
|
1364
1636
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1365
1637
|
|
@@ -1427,6 +1699,22 @@ module Google
|
|
1427
1699
|
# @return [::Google::Protobuf::Empty]
|
1428
1700
|
#
|
1429
1701
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1702
|
+
#
|
1703
|
+
# @example Basic example
|
1704
|
+
# require "google/cloud/apigee_registry/v1"
|
1705
|
+
#
|
1706
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1707
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1708
|
+
#
|
1709
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1710
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiSpecRequest.new
|
1711
|
+
#
|
1712
|
+
# # Call the delete_api_spec method.
|
1713
|
+
# result = client.delete_api_spec request
|
1714
|
+
#
|
1715
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1716
|
+
# p result
|
1717
|
+
#
|
1430
1718
|
def delete_api_spec request, options = nil
|
1431
1719
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1432
1720
|
|
@@ -1492,6 +1780,22 @@ module Google
|
|
1492
1780
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1493
1781
|
#
|
1494
1782
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1783
|
+
#
|
1784
|
+
# @example Basic example
|
1785
|
+
# require "google/cloud/apigee_registry/v1"
|
1786
|
+
#
|
1787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1788
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1789
|
+
#
|
1790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1791
|
+
# request = Google::Cloud::ApigeeRegistry::V1::TagApiSpecRevisionRequest.new
|
1792
|
+
#
|
1793
|
+
# # Call the tag_api_spec_revision method.
|
1794
|
+
# result = client.tag_api_spec_revision request
|
1795
|
+
#
|
1796
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1797
|
+
# p result
|
1798
|
+
#
|
1495
1799
|
def tag_api_spec_revision request, options = nil
|
1496
1800
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1497
1801
|
|
@@ -1560,6 +1864,26 @@ module Google
|
|
1560
1864
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiSpec>]
|
1561
1865
|
#
|
1562
1866
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1867
|
+
#
|
1868
|
+
# @example Basic example
|
1869
|
+
# require "google/cloud/apigee_registry/v1"
|
1870
|
+
#
|
1871
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1872
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1873
|
+
#
|
1874
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1875
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiSpecRevisionsRequest.new
|
1876
|
+
#
|
1877
|
+
# # Call the list_api_spec_revisions method.
|
1878
|
+
# result = client.list_api_spec_revisions request
|
1879
|
+
#
|
1880
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1881
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1882
|
+
# result.each do |item|
|
1883
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1884
|
+
# p item
|
1885
|
+
# end
|
1886
|
+
#
|
1563
1887
|
def list_api_spec_revisions request, options = nil
|
1564
1888
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1565
1889
|
|
@@ -1629,6 +1953,22 @@ module Google
|
|
1629
1953
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1630
1954
|
#
|
1631
1955
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1956
|
+
#
|
1957
|
+
# @example Basic example
|
1958
|
+
# require "google/cloud/apigee_registry/v1"
|
1959
|
+
#
|
1960
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1961
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1962
|
+
#
|
1963
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1964
|
+
# request = Google::Cloud::ApigeeRegistry::V1::RollbackApiSpecRequest.new
|
1965
|
+
#
|
1966
|
+
# # Call the rollback_api_spec method.
|
1967
|
+
# result = client.rollback_api_spec request
|
1968
|
+
#
|
1969
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1970
|
+
# p result
|
1971
|
+
#
|
1632
1972
|
def rollback_api_spec request, options = nil
|
1633
1973
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1634
1974
|
|
@@ -1695,6 +2035,22 @@ module Google
|
|
1695
2035
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1696
2036
|
#
|
1697
2037
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2038
|
+
#
|
2039
|
+
# @example Basic example
|
2040
|
+
# require "google/cloud/apigee_registry/v1"
|
2041
|
+
#
|
2042
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2043
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2044
|
+
#
|
2045
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2046
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiSpecRevisionRequest.new
|
2047
|
+
#
|
2048
|
+
# # Call the delete_api_spec_revision method.
|
2049
|
+
# result = client.delete_api_spec_revision request
|
2050
|
+
#
|
2051
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
2052
|
+
# p result
|
2053
|
+
#
|
1698
2054
|
def delete_api_spec_revision request, options = nil
|
1699
2055
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1700
2056
|
|
@@ -1772,6 +2128,26 @@ module Google
|
|
1772
2128
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiDeployment>]
|
1773
2129
|
#
|
1774
2130
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2131
|
+
#
|
2132
|
+
# @example Basic example
|
2133
|
+
# require "google/cloud/apigee_registry/v1"
|
2134
|
+
#
|
2135
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2136
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2137
|
+
#
|
2138
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2139
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentsRequest.new
|
2140
|
+
#
|
2141
|
+
# # Call the list_api_deployments method.
|
2142
|
+
# result = client.list_api_deployments request
|
2143
|
+
#
|
2144
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2145
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2146
|
+
# result.each do |item|
|
2147
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2148
|
+
# p item
|
2149
|
+
# end
|
2150
|
+
#
|
1775
2151
|
def list_api_deployments request, options = nil
|
1776
2152
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1777
2153
|
|
@@ -1836,6 +2212,22 @@ module Google
|
|
1836
2212
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
1837
2213
|
#
|
1838
2214
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2215
|
+
#
|
2216
|
+
# @example Basic example
|
2217
|
+
# require "google/cloud/apigee_registry/v1"
|
2218
|
+
#
|
2219
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2220
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2221
|
+
#
|
2222
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2223
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiDeploymentRequest.new
|
2224
|
+
#
|
2225
|
+
# # Call the get_api_deployment method.
|
2226
|
+
# result = client.get_api_deployment request
|
2227
|
+
#
|
2228
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2229
|
+
# p result
|
2230
|
+
#
|
1839
2231
|
def get_api_deployment request, options = nil
|
1840
2232
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1841
2233
|
|
@@ -1909,6 +2301,22 @@ module Google
|
|
1909
2301
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
1910
2302
|
#
|
1911
2303
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2304
|
+
#
|
2305
|
+
# @example Basic example
|
2306
|
+
# require "google/cloud/apigee_registry/v1"
|
2307
|
+
#
|
2308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2309
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2310
|
+
#
|
2311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2312
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiDeploymentRequest.new
|
2313
|
+
#
|
2314
|
+
# # Call the create_api_deployment method.
|
2315
|
+
# result = client.create_api_deployment request
|
2316
|
+
#
|
2317
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2318
|
+
# p result
|
2319
|
+
#
|
1912
2320
|
def create_api_deployment request, options = nil
|
1913
2321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1914
2322
|
|
@@ -1982,6 +2390,22 @@ module Google
|
|
1982
2390
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
1983
2391
|
#
|
1984
2392
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2393
|
+
#
|
2394
|
+
# @example Basic example
|
2395
|
+
# require "google/cloud/apigee_registry/v1"
|
2396
|
+
#
|
2397
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2398
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2399
|
+
#
|
2400
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2401
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiDeploymentRequest.new
|
2402
|
+
#
|
2403
|
+
# # Call the update_api_deployment method.
|
2404
|
+
# result = client.update_api_deployment request
|
2405
|
+
#
|
2406
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2407
|
+
# p result
|
2408
|
+
#
|
1985
2409
|
def update_api_deployment request, options = nil
|
1986
2410
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1987
2411
|
|
@@ -2049,6 +2473,22 @@ module Google
|
|
2049
2473
|
# @return [::Google::Protobuf::Empty]
|
2050
2474
|
#
|
2051
2475
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2476
|
+
#
|
2477
|
+
# @example Basic example
|
2478
|
+
# require "google/cloud/apigee_registry/v1"
|
2479
|
+
#
|
2480
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2481
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2482
|
+
#
|
2483
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2484
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiDeploymentRequest.new
|
2485
|
+
#
|
2486
|
+
# # Call the delete_api_deployment method.
|
2487
|
+
# result = client.delete_api_deployment request
|
2488
|
+
#
|
2489
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2490
|
+
# p result
|
2491
|
+
#
|
2052
2492
|
def delete_api_deployment request, options = nil
|
2053
2493
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2054
2494
|
|
@@ -2115,6 +2555,22 @@ module Google
|
|
2115
2555
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
2116
2556
|
#
|
2117
2557
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2558
|
+
#
|
2559
|
+
# @example Basic example
|
2560
|
+
# require "google/cloud/apigee_registry/v1"
|
2561
|
+
#
|
2562
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2563
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2564
|
+
#
|
2565
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2566
|
+
# request = Google::Cloud::ApigeeRegistry::V1::TagApiDeploymentRevisionRequest.new
|
2567
|
+
#
|
2568
|
+
# # Call the tag_api_deployment_revision method.
|
2569
|
+
# result = client.tag_api_deployment_revision request
|
2570
|
+
#
|
2571
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2572
|
+
# p result
|
2573
|
+
#
|
2118
2574
|
def tag_api_deployment_revision request, options = nil
|
2119
2575
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2120
2576
|
|
@@ -2183,6 +2639,26 @@ module Google
|
|
2183
2639
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiDeployment>]
|
2184
2640
|
#
|
2185
2641
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2642
|
+
#
|
2643
|
+
# @example Basic example
|
2644
|
+
# require "google/cloud/apigee_registry/v1"
|
2645
|
+
#
|
2646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2647
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2648
|
+
#
|
2649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2650
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentRevisionsRequest.new
|
2651
|
+
#
|
2652
|
+
# # Call the list_api_deployment_revisions method.
|
2653
|
+
# result = client.list_api_deployment_revisions request
|
2654
|
+
#
|
2655
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2656
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2657
|
+
# result.each do |item|
|
2658
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2659
|
+
# p item
|
2660
|
+
# end
|
2661
|
+
#
|
2186
2662
|
def list_api_deployment_revisions request, options = nil
|
2187
2663
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2188
2664
|
|
@@ -2252,6 +2728,22 @@ module Google
|
|
2252
2728
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
2253
2729
|
#
|
2254
2730
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2731
|
+
#
|
2732
|
+
# @example Basic example
|
2733
|
+
# require "google/cloud/apigee_registry/v1"
|
2734
|
+
#
|
2735
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2736
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2737
|
+
#
|
2738
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2739
|
+
# request = Google::Cloud::ApigeeRegistry::V1::RollbackApiDeploymentRequest.new
|
2740
|
+
#
|
2741
|
+
# # Call the rollback_api_deployment method.
|
2742
|
+
# result = client.rollback_api_deployment request
|
2743
|
+
#
|
2744
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2745
|
+
# p result
|
2746
|
+
#
|
2255
2747
|
def rollback_api_deployment request, options = nil
|
2256
2748
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2257
2749
|
|
@@ -2318,6 +2810,22 @@ module Google
|
|
2318
2810
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
2319
2811
|
#
|
2320
2812
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2813
|
+
#
|
2814
|
+
# @example Basic example
|
2815
|
+
# require "google/cloud/apigee_registry/v1"
|
2816
|
+
#
|
2817
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2818
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2819
|
+
#
|
2820
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2821
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiDeploymentRevisionRequest.new
|
2822
|
+
#
|
2823
|
+
# # Call the delete_api_deployment_revision method.
|
2824
|
+
# result = client.delete_api_deployment_revision request
|
2825
|
+
#
|
2826
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2827
|
+
# p result
|
2828
|
+
#
|
2321
2829
|
def delete_api_deployment_revision request, options = nil
|
2322
2830
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2323
2831
|
|
@@ -2395,6 +2903,26 @@ module Google
|
|
2395
2903
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::Artifact>]
|
2396
2904
|
#
|
2397
2905
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2906
|
+
#
|
2907
|
+
# @example Basic example
|
2908
|
+
# require "google/cloud/apigee_registry/v1"
|
2909
|
+
#
|
2910
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2911
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2912
|
+
#
|
2913
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2914
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListArtifactsRequest.new
|
2915
|
+
#
|
2916
|
+
# # Call the list_artifacts method.
|
2917
|
+
# result = client.list_artifacts request
|
2918
|
+
#
|
2919
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2920
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2921
|
+
# result.each do |item|
|
2922
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::Artifact.
|
2923
|
+
# p item
|
2924
|
+
# end
|
2925
|
+
#
|
2398
2926
|
def list_artifacts request, options = nil
|
2399
2927
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2400
2928
|
|
@@ -2459,6 +2987,22 @@ module Google
|
|
2459
2987
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Artifact]
|
2460
2988
|
#
|
2461
2989
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2990
|
+
#
|
2991
|
+
# @example Basic example
|
2992
|
+
# require "google/cloud/apigee_registry/v1"
|
2993
|
+
#
|
2994
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2995
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2996
|
+
#
|
2997
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2998
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetArtifactRequest.new
|
2999
|
+
#
|
3000
|
+
# # Call the get_artifact method.
|
3001
|
+
# result = client.get_artifact request
|
3002
|
+
#
|
3003
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Artifact.
|
3004
|
+
# p result
|
3005
|
+
#
|
2462
3006
|
def get_artifact request, options = nil
|
2463
3007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2464
3008
|
|
@@ -2525,6 +3069,22 @@ module Google
|
|
2525
3069
|
# @return [::Google::Api::HttpBody]
|
2526
3070
|
#
|
2527
3071
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3072
|
+
#
|
3073
|
+
# @example Basic example
|
3074
|
+
# require "google/cloud/apigee_registry/v1"
|
3075
|
+
#
|
3076
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3077
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3078
|
+
#
|
3079
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3080
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetArtifactContentsRequest.new
|
3081
|
+
#
|
3082
|
+
# # Call the get_artifact_contents method.
|
3083
|
+
# result = client.get_artifact_contents request
|
3084
|
+
#
|
3085
|
+
# # The returned object is of type Google::Api::HttpBody.
|
3086
|
+
# p result
|
3087
|
+
#
|
2528
3088
|
def get_artifact_contents request, options = nil
|
2529
3089
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2530
3090
|
|
@@ -2598,6 +3158,22 @@ module Google
|
|
2598
3158
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Artifact]
|
2599
3159
|
#
|
2600
3160
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3161
|
+
#
|
3162
|
+
# @example Basic example
|
3163
|
+
# require "google/cloud/apigee_registry/v1"
|
3164
|
+
#
|
3165
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3166
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3167
|
+
#
|
3168
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3169
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateArtifactRequest.new
|
3170
|
+
#
|
3171
|
+
# # Call the create_artifact method.
|
3172
|
+
# result = client.create_artifact request
|
3173
|
+
#
|
3174
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Artifact.
|
3175
|
+
# p result
|
3176
|
+
#
|
2601
3177
|
def create_artifact request, options = nil
|
2602
3178
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2603
3179
|
|
@@ -2663,6 +3239,22 @@ module Google
|
|
2663
3239
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Artifact]
|
2664
3240
|
#
|
2665
3241
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3242
|
+
#
|
3243
|
+
# @example Basic example
|
3244
|
+
# require "google/cloud/apigee_registry/v1"
|
3245
|
+
#
|
3246
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3247
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3248
|
+
#
|
3249
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3250
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ReplaceArtifactRequest.new
|
3251
|
+
#
|
3252
|
+
# # Call the replace_artifact method.
|
3253
|
+
# result = client.replace_artifact request
|
3254
|
+
#
|
3255
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Artifact.
|
3256
|
+
# p result
|
3257
|
+
#
|
2666
3258
|
def replace_artifact request, options = nil
|
2667
3259
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2668
3260
|
|
@@ -2726,6 +3318,22 @@ module Google
|
|
2726
3318
|
# @return [::Google::Protobuf::Empty]
|
2727
3319
|
#
|
2728
3320
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3321
|
+
#
|
3322
|
+
# @example Basic example
|
3323
|
+
# require "google/cloud/apigee_registry/v1"
|
3324
|
+
#
|
3325
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3326
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3327
|
+
#
|
3328
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3329
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteArtifactRequest.new
|
3330
|
+
#
|
3331
|
+
# # Call the delete_artifact method.
|
3332
|
+
# result = client.delete_artifact request
|
3333
|
+
#
|
3334
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3335
|
+
# p result
|
3336
|
+
#
|
2729
3337
|
def delete_artifact request, options = nil
|
2730
3338
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2731
3339
|
|
@@ -2791,9 +3399,9 @@ module Google
|
|
2791
3399
|
# end
|
2792
3400
|
#
|
2793
3401
|
# @!attribute [rw] endpoint
|
2794
|
-
#
|
2795
|
-
#
|
2796
|
-
# @return [::String]
|
3402
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
3403
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
3404
|
+
# @return [::String,nil]
|
2797
3405
|
# @!attribute [rw] credentials
|
2798
3406
|
# Credentials to send with calls. You may provide any of the following types:
|
2799
3407
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2830,13 +3438,20 @@ module Google
|
|
2830
3438
|
# @!attribute [rw] quota_project
|
2831
3439
|
# A separate project against which to charge quota.
|
2832
3440
|
# @return [::String]
|
3441
|
+
# @!attribute [rw] universe_domain
|
3442
|
+
# The universe domain within which to make requests. This determines the
|
3443
|
+
# default endpoint URL. The default value of nil uses the environment
|
3444
|
+
# universe (usually the default "googleapis.com" universe).
|
3445
|
+
# @return [::String,nil]
|
2833
3446
|
#
|
2834
3447
|
class Configuration
|
2835
3448
|
extend ::Gapic::Config
|
2836
3449
|
|
3450
|
+
# @private
|
3451
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
2837
3452
|
DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
|
2838
3453
|
|
2839
|
-
config_attr :endpoint,
|
3454
|
+
config_attr :endpoint, nil, ::String, nil
|
2840
3455
|
config_attr :credentials, nil do |value|
|
2841
3456
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2842
3457
|
allowed.any? { |klass| klass === value }
|
@@ -2848,6 +3463,7 @@ module Google
|
|
2848
3463
|
config_attr :metadata, nil, ::Hash, nil
|
2849
3464
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2850
3465
|
config_attr :quota_project, nil, ::String, nil
|
3466
|
+
config_attr :universe_domain, nil, ::String, nil
|
2851
3467
|
|
2852
3468
|
# @private
|
2853
3469
|
# Overrides for http bindings for the RPCs of this service
|