google-cloud-apigee_registry-v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/apigee_registry/v1/provisioning/client.rb +10 -1
- data/lib/google/cloud/apigee_registry/v1/provisioning/operations.rb +10 -1
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/client.rb +62 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/rest/operations.rb +75 -0
- data/lib/google/cloud/apigee_registry/v1/registry/client.rb +10 -1
- data/lib/google/cloud/apigee_registry/v1/registry/rest/client.rb +588 -0
- data/lib/google/cloud/apigee_registry/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57b135728d5a751ca1319356039d3f3c94a242b0cceea6a8d379072d1c72a3f9
|
4
|
+
data.tar.gz: c4dfe2a02c722dcc956503118910268ca401090779e2784d1d897dac6a6315cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd1fd5d204afcdca577219c1abe1d87567240c25f8e3f8da91359fccf106df7e7231c8c1d2b20adf29f5991b374dbe4ab48d945c4c79985823f668385619bae2
|
7
|
+
data.tar.gz: 61e1ec53d163f48da849a054250cfb365f360480c84d0625d26de64f8b30d2e1af746b6c40a8c20e622feb9130855743dc79643938d895b423afab5cdaef654c
|
@@ -159,7 +159,8 @@ module Google
|
|
159
159
|
credentials: credentials,
|
160
160
|
endpoint: @config.endpoint,
|
161
161
|
channel_args: @config.channel_args,
|
162
|
-
interceptors: @config.interceptors
|
162
|
+
interceptors: @config.interceptors,
|
163
|
+
channel_pool_config: @config.channel_pool
|
163
164
|
)
|
164
165
|
end
|
165
166
|
|
@@ -583,6 +584,14 @@ module Google
|
|
583
584
|
end
|
584
585
|
end
|
585
586
|
|
587
|
+
##
|
588
|
+
# Configuration for the channel pool
|
589
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
590
|
+
#
|
591
|
+
def channel_pool
|
592
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
593
|
+
end
|
594
|
+
|
586
595
|
##
|
587
596
|
# Configuration RPC class for the Provisioning API.
|
588
597
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -211,6 +211,29 @@ module Google
|
|
211
211
|
# @return [::Gapic::Operation]
|
212
212
|
#
|
213
213
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
214
|
+
#
|
215
|
+
# @example Basic example
|
216
|
+
# require "google/cloud/apigee_registry/v1"
|
217
|
+
#
|
218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
219
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Provisioning::Rest::Client.new
|
220
|
+
#
|
221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
222
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateInstanceRequest.new
|
223
|
+
#
|
224
|
+
# # Call the create_instance method.
|
225
|
+
# result = client.create_instance request
|
226
|
+
#
|
227
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
228
|
+
# # check the status of an operation, cancel it, or wait for results.
|
229
|
+
# # Here is how to wait for a response.
|
230
|
+
# result.wait_until_done! timeout: 60
|
231
|
+
# if result.response?
|
232
|
+
# p result.response
|
233
|
+
# else
|
234
|
+
# puts "No response received."
|
235
|
+
# end
|
236
|
+
#
|
214
237
|
def create_instance request, options = nil
|
215
238
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
216
239
|
|
@@ -275,6 +298,29 @@ module Google
|
|
275
298
|
# @return [::Gapic::Operation]
|
276
299
|
#
|
277
300
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
301
|
+
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/apigee_registry/v1"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Provisioning::Rest::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteInstanceRequest.new
|
310
|
+
#
|
311
|
+
# # Call the delete_instance method.
|
312
|
+
# result = client.delete_instance request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
315
|
+
# # check the status of an operation, cancel it, or wait for results.
|
316
|
+
# # Here is how to wait for a response.
|
317
|
+
# result.wait_until_done! timeout: 60
|
318
|
+
# if result.response?
|
319
|
+
# p result.response
|
320
|
+
# else
|
321
|
+
# puts "No response received."
|
322
|
+
# end
|
323
|
+
#
|
278
324
|
def delete_instance request, options = nil
|
279
325
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
326
|
|
@@ -339,6 +385,22 @@ module Google
|
|
339
385
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Instance]
|
340
386
|
#
|
341
387
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
388
|
+
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/apigee_registry/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Provisioning::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetInstanceRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get_instance method.
|
399
|
+
# result = client.get_instance request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Instance.
|
402
|
+
# p result
|
403
|
+
#
|
342
404
|
def get_instance request, options = nil
|
343
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
406
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -321,7 +321,8 @@ module Google
|
|
321
321
|
credentials: credentials,
|
322
322
|
endpoint: @config.endpoint,
|
323
323
|
channel_args: @config.channel_args,
|
324
|
-
interceptors: @config.interceptors
|
324
|
+
interceptors: @config.interceptors,
|
325
|
+
channel_pool_config: @config.channel_pool
|
325
326
|
)
|
326
327
|
end
|
327
328
|
|
@@ -3720,6 +3721,14 @@ module Google
|
|
3720
3721
|
end
|
3721
3722
|
end
|
3722
3723
|
|
3724
|
+
##
|
3725
|
+
# Configuration for the channel pool
|
3726
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
3727
|
+
#
|
3728
|
+
def channel_pool
|
3729
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
3730
|
+
end
|
3731
|
+
|
3723
3732
|
##
|
3724
3733
|
# Configuration RPC class for the Registry API.
|
3725
3734
|
#
|
@@ -376,6 +376,26 @@ module Google
|
|
376
376
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::Api>]
|
377
377
|
#
|
378
378
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
379
|
+
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/apigee_registry/v1"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApisRequest.new
|
388
|
+
#
|
389
|
+
# # Call the list_apis method.
|
390
|
+
# result = client.list_apis request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
393
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
394
|
+
# result.each do |item|
|
395
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::Api.
|
396
|
+
# p item
|
397
|
+
# end
|
398
|
+
#
|
379
399
|
def list_apis request, options = nil
|
380
400
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
381
401
|
|
@@ -440,6 +460,22 @@ module Google
|
|
440
460
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Api]
|
441
461
|
#
|
442
462
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
463
|
+
#
|
464
|
+
# @example Basic example
|
465
|
+
# require "google/cloud/apigee_registry/v1"
|
466
|
+
#
|
467
|
+
# # Create a client object. The client can be reused for multiple calls.
|
468
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
469
|
+
#
|
470
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
471
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiRequest.new
|
472
|
+
#
|
473
|
+
# # Call the get_api method.
|
474
|
+
# result = client.get_api request
|
475
|
+
#
|
476
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Api.
|
477
|
+
# p result
|
478
|
+
#
|
443
479
|
def get_api request, options = nil
|
444
480
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
445
481
|
|
@@ -513,6 +549,22 @@ module Google
|
|
513
549
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Api]
|
514
550
|
#
|
515
551
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
552
|
+
#
|
553
|
+
# @example Basic example
|
554
|
+
# require "google/cloud/apigee_registry/v1"
|
555
|
+
#
|
556
|
+
# # Create a client object. The client can be reused for multiple calls.
|
557
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
558
|
+
#
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
560
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiRequest.new
|
561
|
+
#
|
562
|
+
# # Call the create_api method.
|
563
|
+
# result = client.create_api request
|
564
|
+
#
|
565
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Api.
|
566
|
+
# p result
|
567
|
+
#
|
516
568
|
def create_api request, options = nil
|
517
569
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
518
570
|
|
@@ -586,6 +638,22 @@ module Google
|
|
586
638
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Api]
|
587
639
|
#
|
588
640
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
641
|
+
#
|
642
|
+
# @example Basic example
|
643
|
+
# require "google/cloud/apigee_registry/v1"
|
644
|
+
#
|
645
|
+
# # Create a client object. The client can be reused for multiple calls.
|
646
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
647
|
+
#
|
648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
649
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiRequest.new
|
650
|
+
#
|
651
|
+
# # Call the update_api method.
|
652
|
+
# result = client.update_api request
|
653
|
+
#
|
654
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Api.
|
655
|
+
# p result
|
656
|
+
#
|
589
657
|
def update_api request, options = nil
|
590
658
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
591
659
|
|
@@ -653,6 +721,22 @@ module Google
|
|
653
721
|
# @return [::Google::Protobuf::Empty]
|
654
722
|
#
|
655
723
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
724
|
+
#
|
725
|
+
# @example Basic example
|
726
|
+
# require "google/cloud/apigee_registry/v1"
|
727
|
+
#
|
728
|
+
# # Create a client object. The client can be reused for multiple calls.
|
729
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
730
|
+
#
|
731
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
732
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiRequest.new
|
733
|
+
#
|
734
|
+
# # Call the delete_api method.
|
735
|
+
# result = client.delete_api request
|
736
|
+
#
|
737
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
738
|
+
# p result
|
739
|
+
#
|
656
740
|
def delete_api request, options = nil
|
657
741
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
658
742
|
|
@@ -730,6 +814,26 @@ module Google
|
|
730
814
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiVersion>]
|
731
815
|
#
|
732
816
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
817
|
+
#
|
818
|
+
# @example Basic example
|
819
|
+
# require "google/cloud/apigee_registry/v1"
|
820
|
+
#
|
821
|
+
# # Create a client object. The client can be reused for multiple calls.
|
822
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
823
|
+
#
|
824
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
825
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiVersionsRequest.new
|
826
|
+
#
|
827
|
+
# # Call the list_api_versions method.
|
828
|
+
# result = client.list_api_versions request
|
829
|
+
#
|
830
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
831
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
832
|
+
# result.each do |item|
|
833
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
834
|
+
# p item
|
835
|
+
# end
|
836
|
+
#
|
733
837
|
def list_api_versions request, options = nil
|
734
838
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
735
839
|
|
@@ -794,6 +898,22 @@ module Google
|
|
794
898
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiVersion]
|
795
899
|
#
|
796
900
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
901
|
+
#
|
902
|
+
# @example Basic example
|
903
|
+
# require "google/cloud/apigee_registry/v1"
|
904
|
+
#
|
905
|
+
# # Create a client object. The client can be reused for multiple calls.
|
906
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
907
|
+
#
|
908
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
909
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiVersionRequest.new
|
910
|
+
#
|
911
|
+
# # Call the get_api_version method.
|
912
|
+
# result = client.get_api_version request
|
913
|
+
#
|
914
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
915
|
+
# p result
|
916
|
+
#
|
797
917
|
def get_api_version request, options = nil
|
798
918
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
799
919
|
|
@@ -867,6 +987,22 @@ module Google
|
|
867
987
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiVersion]
|
868
988
|
#
|
869
989
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
990
|
+
#
|
991
|
+
# @example Basic example
|
992
|
+
# require "google/cloud/apigee_registry/v1"
|
993
|
+
#
|
994
|
+
# # Create a client object. The client can be reused for multiple calls.
|
995
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
996
|
+
#
|
997
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
998
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiVersionRequest.new
|
999
|
+
#
|
1000
|
+
# # Call the create_api_version method.
|
1001
|
+
# result = client.create_api_version request
|
1002
|
+
#
|
1003
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
1004
|
+
# p result
|
1005
|
+
#
|
870
1006
|
def create_api_version request, options = nil
|
871
1007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
872
1008
|
|
@@ -940,6 +1076,22 @@ module Google
|
|
940
1076
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiVersion]
|
941
1077
|
#
|
942
1078
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1079
|
+
#
|
1080
|
+
# @example Basic example
|
1081
|
+
# require "google/cloud/apigee_registry/v1"
|
1082
|
+
#
|
1083
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1084
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1085
|
+
#
|
1086
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1087
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiVersionRequest.new
|
1088
|
+
#
|
1089
|
+
# # Call the update_api_version method.
|
1090
|
+
# result = client.update_api_version request
|
1091
|
+
#
|
1092
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiVersion.
|
1093
|
+
# p result
|
1094
|
+
#
|
943
1095
|
def update_api_version request, options = nil
|
944
1096
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
945
1097
|
|
@@ -1007,6 +1159,22 @@ module Google
|
|
1007
1159
|
# @return [::Google::Protobuf::Empty]
|
1008
1160
|
#
|
1009
1161
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1162
|
+
#
|
1163
|
+
# @example Basic example
|
1164
|
+
# require "google/cloud/apigee_registry/v1"
|
1165
|
+
#
|
1166
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1167
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1168
|
+
#
|
1169
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1170
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiVersionRequest.new
|
1171
|
+
#
|
1172
|
+
# # Call the delete_api_version method.
|
1173
|
+
# result = client.delete_api_version request
|
1174
|
+
#
|
1175
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1176
|
+
# p result
|
1177
|
+
#
|
1010
1178
|
def delete_api_version request, options = nil
|
1011
1179
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1012
1180
|
|
@@ -1084,6 +1252,26 @@ module Google
|
|
1084
1252
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiSpec>]
|
1085
1253
|
#
|
1086
1254
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1255
|
+
#
|
1256
|
+
# @example Basic example
|
1257
|
+
# require "google/cloud/apigee_registry/v1"
|
1258
|
+
#
|
1259
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1260
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1261
|
+
#
|
1262
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1263
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiSpecsRequest.new
|
1264
|
+
#
|
1265
|
+
# # Call the list_api_specs method.
|
1266
|
+
# result = client.list_api_specs request
|
1267
|
+
#
|
1268
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1269
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1270
|
+
# result.each do |item|
|
1271
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1272
|
+
# p item
|
1273
|
+
# end
|
1274
|
+
#
|
1087
1275
|
def list_api_specs request, options = nil
|
1088
1276
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1089
1277
|
|
@@ -1148,6 +1336,22 @@ module Google
|
|
1148
1336
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1149
1337
|
#
|
1150
1338
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1339
|
+
#
|
1340
|
+
# @example Basic example
|
1341
|
+
# require "google/cloud/apigee_registry/v1"
|
1342
|
+
#
|
1343
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1344
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1345
|
+
#
|
1346
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1347
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiSpecRequest.new
|
1348
|
+
#
|
1349
|
+
# # Call the get_api_spec method.
|
1350
|
+
# result = client.get_api_spec request
|
1351
|
+
#
|
1352
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1353
|
+
# p result
|
1354
|
+
#
|
1151
1355
|
def get_api_spec request, options = nil
|
1152
1356
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1153
1357
|
|
@@ -1214,6 +1418,22 @@ module Google
|
|
1214
1418
|
# @return [::Google::Api::HttpBody]
|
1215
1419
|
#
|
1216
1420
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1421
|
+
#
|
1422
|
+
# @example Basic example
|
1423
|
+
# require "google/cloud/apigee_registry/v1"
|
1424
|
+
#
|
1425
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1426
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1427
|
+
#
|
1428
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1429
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiSpecContentsRequest.new
|
1430
|
+
#
|
1431
|
+
# # Call the get_api_spec_contents method.
|
1432
|
+
# result = client.get_api_spec_contents request
|
1433
|
+
#
|
1434
|
+
# # The returned object is of type Google::Api::HttpBody.
|
1435
|
+
# p result
|
1436
|
+
#
|
1217
1437
|
def get_api_spec_contents request, options = nil
|
1218
1438
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1219
1439
|
|
@@ -1287,6 +1507,22 @@ module Google
|
|
1287
1507
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1288
1508
|
#
|
1289
1509
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1510
|
+
#
|
1511
|
+
# @example Basic example
|
1512
|
+
# require "google/cloud/apigee_registry/v1"
|
1513
|
+
#
|
1514
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1515
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1516
|
+
#
|
1517
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1518
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiSpecRequest.new
|
1519
|
+
#
|
1520
|
+
# # Call the create_api_spec method.
|
1521
|
+
# result = client.create_api_spec request
|
1522
|
+
#
|
1523
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1524
|
+
# p result
|
1525
|
+
#
|
1290
1526
|
def create_api_spec request, options = nil
|
1291
1527
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1292
1528
|
|
@@ -1360,6 +1596,22 @@ module Google
|
|
1360
1596
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1361
1597
|
#
|
1362
1598
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1599
|
+
#
|
1600
|
+
# @example Basic example
|
1601
|
+
# require "google/cloud/apigee_registry/v1"
|
1602
|
+
#
|
1603
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1604
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1605
|
+
#
|
1606
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1607
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiSpecRequest.new
|
1608
|
+
#
|
1609
|
+
# # Call the update_api_spec method.
|
1610
|
+
# result = client.update_api_spec request
|
1611
|
+
#
|
1612
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1613
|
+
# p result
|
1614
|
+
#
|
1363
1615
|
def update_api_spec request, options = nil
|
1364
1616
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1365
1617
|
|
@@ -1427,6 +1679,22 @@ module Google
|
|
1427
1679
|
# @return [::Google::Protobuf::Empty]
|
1428
1680
|
#
|
1429
1681
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1682
|
+
#
|
1683
|
+
# @example Basic example
|
1684
|
+
# require "google/cloud/apigee_registry/v1"
|
1685
|
+
#
|
1686
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1687
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1688
|
+
#
|
1689
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1690
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiSpecRequest.new
|
1691
|
+
#
|
1692
|
+
# # Call the delete_api_spec method.
|
1693
|
+
# result = client.delete_api_spec request
|
1694
|
+
#
|
1695
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1696
|
+
# p result
|
1697
|
+
#
|
1430
1698
|
def delete_api_spec request, options = nil
|
1431
1699
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1432
1700
|
|
@@ -1492,6 +1760,22 @@ module Google
|
|
1492
1760
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1493
1761
|
#
|
1494
1762
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1763
|
+
#
|
1764
|
+
# @example Basic example
|
1765
|
+
# require "google/cloud/apigee_registry/v1"
|
1766
|
+
#
|
1767
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1768
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1769
|
+
#
|
1770
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1771
|
+
# request = Google::Cloud::ApigeeRegistry::V1::TagApiSpecRevisionRequest.new
|
1772
|
+
#
|
1773
|
+
# # Call the tag_api_spec_revision method.
|
1774
|
+
# result = client.tag_api_spec_revision request
|
1775
|
+
#
|
1776
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1777
|
+
# p result
|
1778
|
+
#
|
1495
1779
|
def tag_api_spec_revision request, options = nil
|
1496
1780
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1497
1781
|
|
@@ -1560,6 +1844,26 @@ module Google
|
|
1560
1844
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiSpec>]
|
1561
1845
|
#
|
1562
1846
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1847
|
+
#
|
1848
|
+
# @example Basic example
|
1849
|
+
# require "google/cloud/apigee_registry/v1"
|
1850
|
+
#
|
1851
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1852
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1853
|
+
#
|
1854
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1855
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiSpecRevisionsRequest.new
|
1856
|
+
#
|
1857
|
+
# # Call the list_api_spec_revisions method.
|
1858
|
+
# result = client.list_api_spec_revisions request
|
1859
|
+
#
|
1860
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1861
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1862
|
+
# result.each do |item|
|
1863
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1864
|
+
# p item
|
1865
|
+
# end
|
1866
|
+
#
|
1563
1867
|
def list_api_spec_revisions request, options = nil
|
1564
1868
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1565
1869
|
|
@@ -1629,6 +1933,22 @@ module Google
|
|
1629
1933
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1630
1934
|
#
|
1631
1935
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1936
|
+
#
|
1937
|
+
# @example Basic example
|
1938
|
+
# require "google/cloud/apigee_registry/v1"
|
1939
|
+
#
|
1940
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1941
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
1942
|
+
#
|
1943
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1944
|
+
# request = Google::Cloud::ApigeeRegistry::V1::RollbackApiSpecRequest.new
|
1945
|
+
#
|
1946
|
+
# # Call the rollback_api_spec method.
|
1947
|
+
# result = client.rollback_api_spec request
|
1948
|
+
#
|
1949
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
1950
|
+
# p result
|
1951
|
+
#
|
1632
1952
|
def rollback_api_spec request, options = nil
|
1633
1953
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1634
1954
|
|
@@ -1695,6 +2015,22 @@ module Google
|
|
1695
2015
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiSpec]
|
1696
2016
|
#
|
1697
2017
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2018
|
+
#
|
2019
|
+
# @example Basic example
|
2020
|
+
# require "google/cloud/apigee_registry/v1"
|
2021
|
+
#
|
2022
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2023
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2024
|
+
#
|
2025
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2026
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiSpecRevisionRequest.new
|
2027
|
+
#
|
2028
|
+
# # Call the delete_api_spec_revision method.
|
2029
|
+
# result = client.delete_api_spec_revision request
|
2030
|
+
#
|
2031
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiSpec.
|
2032
|
+
# p result
|
2033
|
+
#
|
1698
2034
|
def delete_api_spec_revision request, options = nil
|
1699
2035
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1700
2036
|
|
@@ -1772,6 +2108,26 @@ module Google
|
|
1772
2108
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiDeployment>]
|
1773
2109
|
#
|
1774
2110
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2111
|
+
#
|
2112
|
+
# @example Basic example
|
2113
|
+
# require "google/cloud/apigee_registry/v1"
|
2114
|
+
#
|
2115
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2116
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2117
|
+
#
|
2118
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2119
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentsRequest.new
|
2120
|
+
#
|
2121
|
+
# # Call the list_api_deployments method.
|
2122
|
+
# result = client.list_api_deployments request
|
2123
|
+
#
|
2124
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2125
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2126
|
+
# result.each do |item|
|
2127
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2128
|
+
# p item
|
2129
|
+
# end
|
2130
|
+
#
|
1775
2131
|
def list_api_deployments request, options = nil
|
1776
2132
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1777
2133
|
|
@@ -1836,6 +2192,22 @@ module Google
|
|
1836
2192
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
1837
2193
|
#
|
1838
2194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2195
|
+
#
|
2196
|
+
# @example Basic example
|
2197
|
+
# require "google/cloud/apigee_registry/v1"
|
2198
|
+
#
|
2199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2200
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2201
|
+
#
|
2202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2203
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetApiDeploymentRequest.new
|
2204
|
+
#
|
2205
|
+
# # Call the get_api_deployment method.
|
2206
|
+
# result = client.get_api_deployment request
|
2207
|
+
#
|
2208
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2209
|
+
# p result
|
2210
|
+
#
|
1839
2211
|
def get_api_deployment request, options = nil
|
1840
2212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1841
2213
|
|
@@ -1909,6 +2281,22 @@ module Google
|
|
1909
2281
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
1910
2282
|
#
|
1911
2283
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2284
|
+
#
|
2285
|
+
# @example Basic example
|
2286
|
+
# require "google/cloud/apigee_registry/v1"
|
2287
|
+
#
|
2288
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2289
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2290
|
+
#
|
2291
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2292
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateApiDeploymentRequest.new
|
2293
|
+
#
|
2294
|
+
# # Call the create_api_deployment method.
|
2295
|
+
# result = client.create_api_deployment request
|
2296
|
+
#
|
2297
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2298
|
+
# p result
|
2299
|
+
#
|
1912
2300
|
def create_api_deployment request, options = nil
|
1913
2301
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1914
2302
|
|
@@ -1982,6 +2370,22 @@ module Google
|
|
1982
2370
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
1983
2371
|
#
|
1984
2372
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2373
|
+
#
|
2374
|
+
# @example Basic example
|
2375
|
+
# require "google/cloud/apigee_registry/v1"
|
2376
|
+
#
|
2377
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2378
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2379
|
+
#
|
2380
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2381
|
+
# request = Google::Cloud::ApigeeRegistry::V1::UpdateApiDeploymentRequest.new
|
2382
|
+
#
|
2383
|
+
# # Call the update_api_deployment method.
|
2384
|
+
# result = client.update_api_deployment request
|
2385
|
+
#
|
2386
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2387
|
+
# p result
|
2388
|
+
#
|
1985
2389
|
def update_api_deployment request, options = nil
|
1986
2390
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1987
2391
|
|
@@ -2049,6 +2453,22 @@ module Google
|
|
2049
2453
|
# @return [::Google::Protobuf::Empty]
|
2050
2454
|
#
|
2051
2455
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2456
|
+
#
|
2457
|
+
# @example Basic example
|
2458
|
+
# require "google/cloud/apigee_registry/v1"
|
2459
|
+
#
|
2460
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2461
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2462
|
+
#
|
2463
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2464
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiDeploymentRequest.new
|
2465
|
+
#
|
2466
|
+
# # Call the delete_api_deployment method.
|
2467
|
+
# result = client.delete_api_deployment request
|
2468
|
+
#
|
2469
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2470
|
+
# p result
|
2471
|
+
#
|
2052
2472
|
def delete_api_deployment request, options = nil
|
2053
2473
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2054
2474
|
|
@@ -2115,6 +2535,22 @@ module Google
|
|
2115
2535
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
2116
2536
|
#
|
2117
2537
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2538
|
+
#
|
2539
|
+
# @example Basic example
|
2540
|
+
# require "google/cloud/apigee_registry/v1"
|
2541
|
+
#
|
2542
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2543
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2544
|
+
#
|
2545
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2546
|
+
# request = Google::Cloud::ApigeeRegistry::V1::TagApiDeploymentRevisionRequest.new
|
2547
|
+
#
|
2548
|
+
# # Call the tag_api_deployment_revision method.
|
2549
|
+
# result = client.tag_api_deployment_revision request
|
2550
|
+
#
|
2551
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2552
|
+
# p result
|
2553
|
+
#
|
2118
2554
|
def tag_api_deployment_revision request, options = nil
|
2119
2555
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2120
2556
|
|
@@ -2183,6 +2619,26 @@ module Google
|
|
2183
2619
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::ApiDeployment>]
|
2184
2620
|
#
|
2185
2621
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2622
|
+
#
|
2623
|
+
# @example Basic example
|
2624
|
+
# require "google/cloud/apigee_registry/v1"
|
2625
|
+
#
|
2626
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2627
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2628
|
+
#
|
2629
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2630
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentRevisionsRequest.new
|
2631
|
+
#
|
2632
|
+
# # Call the list_api_deployment_revisions method.
|
2633
|
+
# result = client.list_api_deployment_revisions request
|
2634
|
+
#
|
2635
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2636
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2637
|
+
# result.each do |item|
|
2638
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2639
|
+
# p item
|
2640
|
+
# end
|
2641
|
+
#
|
2186
2642
|
def list_api_deployment_revisions request, options = nil
|
2187
2643
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2188
2644
|
|
@@ -2252,6 +2708,22 @@ module Google
|
|
2252
2708
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
2253
2709
|
#
|
2254
2710
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2711
|
+
#
|
2712
|
+
# @example Basic example
|
2713
|
+
# require "google/cloud/apigee_registry/v1"
|
2714
|
+
#
|
2715
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2716
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2717
|
+
#
|
2718
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2719
|
+
# request = Google::Cloud::ApigeeRegistry::V1::RollbackApiDeploymentRequest.new
|
2720
|
+
#
|
2721
|
+
# # Call the rollback_api_deployment method.
|
2722
|
+
# result = client.rollback_api_deployment request
|
2723
|
+
#
|
2724
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2725
|
+
# p result
|
2726
|
+
#
|
2255
2727
|
def rollback_api_deployment request, options = nil
|
2256
2728
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2257
2729
|
|
@@ -2318,6 +2790,22 @@ module Google
|
|
2318
2790
|
# @return [::Google::Cloud::ApigeeRegistry::V1::ApiDeployment]
|
2319
2791
|
#
|
2320
2792
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2793
|
+
#
|
2794
|
+
# @example Basic example
|
2795
|
+
# require "google/cloud/apigee_registry/v1"
|
2796
|
+
#
|
2797
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2798
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2799
|
+
#
|
2800
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2801
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteApiDeploymentRevisionRequest.new
|
2802
|
+
#
|
2803
|
+
# # Call the delete_api_deployment_revision method.
|
2804
|
+
# result = client.delete_api_deployment_revision request
|
2805
|
+
#
|
2806
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::ApiDeployment.
|
2807
|
+
# p result
|
2808
|
+
#
|
2321
2809
|
def delete_api_deployment_revision request, options = nil
|
2322
2810
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2323
2811
|
|
@@ -2395,6 +2883,26 @@ module Google
|
|
2395
2883
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeRegistry::V1::Artifact>]
|
2396
2884
|
#
|
2397
2885
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2886
|
+
#
|
2887
|
+
# @example Basic example
|
2888
|
+
# require "google/cloud/apigee_registry/v1"
|
2889
|
+
#
|
2890
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2891
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2892
|
+
#
|
2893
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2894
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ListArtifactsRequest.new
|
2895
|
+
#
|
2896
|
+
# # Call the list_artifacts method.
|
2897
|
+
# result = client.list_artifacts request
|
2898
|
+
#
|
2899
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2900
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2901
|
+
# result.each do |item|
|
2902
|
+
# # Each element is of type ::Google::Cloud::ApigeeRegistry::V1::Artifact.
|
2903
|
+
# p item
|
2904
|
+
# end
|
2905
|
+
#
|
2398
2906
|
def list_artifacts request, options = nil
|
2399
2907
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2400
2908
|
|
@@ -2459,6 +2967,22 @@ module Google
|
|
2459
2967
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Artifact]
|
2460
2968
|
#
|
2461
2969
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2970
|
+
#
|
2971
|
+
# @example Basic example
|
2972
|
+
# require "google/cloud/apigee_registry/v1"
|
2973
|
+
#
|
2974
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2975
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
2976
|
+
#
|
2977
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2978
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetArtifactRequest.new
|
2979
|
+
#
|
2980
|
+
# # Call the get_artifact method.
|
2981
|
+
# result = client.get_artifact request
|
2982
|
+
#
|
2983
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Artifact.
|
2984
|
+
# p result
|
2985
|
+
#
|
2462
2986
|
def get_artifact request, options = nil
|
2463
2987
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2464
2988
|
|
@@ -2525,6 +3049,22 @@ module Google
|
|
2525
3049
|
# @return [::Google::Api::HttpBody]
|
2526
3050
|
#
|
2527
3051
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3052
|
+
#
|
3053
|
+
# @example Basic example
|
3054
|
+
# require "google/cloud/apigee_registry/v1"
|
3055
|
+
#
|
3056
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3057
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3058
|
+
#
|
3059
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3060
|
+
# request = Google::Cloud::ApigeeRegistry::V1::GetArtifactContentsRequest.new
|
3061
|
+
#
|
3062
|
+
# # Call the get_artifact_contents method.
|
3063
|
+
# result = client.get_artifact_contents request
|
3064
|
+
#
|
3065
|
+
# # The returned object is of type Google::Api::HttpBody.
|
3066
|
+
# p result
|
3067
|
+
#
|
2528
3068
|
def get_artifact_contents request, options = nil
|
2529
3069
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2530
3070
|
|
@@ -2598,6 +3138,22 @@ module Google
|
|
2598
3138
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Artifact]
|
2599
3139
|
#
|
2600
3140
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3141
|
+
#
|
3142
|
+
# @example Basic example
|
3143
|
+
# require "google/cloud/apigee_registry/v1"
|
3144
|
+
#
|
3145
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3146
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3147
|
+
#
|
3148
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3149
|
+
# request = Google::Cloud::ApigeeRegistry::V1::CreateArtifactRequest.new
|
3150
|
+
#
|
3151
|
+
# # Call the create_artifact method.
|
3152
|
+
# result = client.create_artifact request
|
3153
|
+
#
|
3154
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Artifact.
|
3155
|
+
# p result
|
3156
|
+
#
|
2601
3157
|
def create_artifact request, options = nil
|
2602
3158
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2603
3159
|
|
@@ -2663,6 +3219,22 @@ module Google
|
|
2663
3219
|
# @return [::Google::Cloud::ApigeeRegistry::V1::Artifact]
|
2664
3220
|
#
|
2665
3221
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3222
|
+
#
|
3223
|
+
# @example Basic example
|
3224
|
+
# require "google/cloud/apigee_registry/v1"
|
3225
|
+
#
|
3226
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3227
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3228
|
+
#
|
3229
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3230
|
+
# request = Google::Cloud::ApigeeRegistry::V1::ReplaceArtifactRequest.new
|
3231
|
+
#
|
3232
|
+
# # Call the replace_artifact method.
|
3233
|
+
# result = client.replace_artifact request
|
3234
|
+
#
|
3235
|
+
# # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Artifact.
|
3236
|
+
# p result
|
3237
|
+
#
|
2666
3238
|
def replace_artifact request, options = nil
|
2667
3239
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2668
3240
|
|
@@ -2726,6 +3298,22 @@ module Google
|
|
2726
3298
|
# @return [::Google::Protobuf::Empty]
|
2727
3299
|
#
|
2728
3300
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3301
|
+
#
|
3302
|
+
# @example Basic example
|
3303
|
+
# require "google/cloud/apigee_registry/v1"
|
3304
|
+
#
|
3305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3306
|
+
# client = Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client.new
|
3307
|
+
#
|
3308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3309
|
+
# request = Google::Cloud::ApigeeRegistry::V1::DeleteArtifactRequest.new
|
3310
|
+
#
|
3311
|
+
# # Call the delete_artifact method.
|
3312
|
+
# result = client.delete_artifact request
|
3313
|
+
#
|
3314
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3315
|
+
# p result
|
3316
|
+
#
|
2729
3317
|
def delete_artifact request, options = nil
|
2730
3318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2731
3319
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-apigee_registry-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0'
|
279
279
|
requirements: []
|
280
|
-
rubygems_version: 3.4.
|
280
|
+
rubygems_version: 3.4.19
|
281
281
|
signing_key:
|
282
282
|
specification_version: 4
|
283
283
|
summary: API Client library for the Apigee Registry V1 API
|