google-cloud-api_gateway-v1 0.1.3 → 0.1.4
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/api_gateway/v1/api_gateway_service/client.rb +381 -45
- data/lib/google/cloud/api_gateway/v1/api_gateway_service/operations.rb +115 -12
- data/lib/google/cloud/api_gateway/v1/version.rb +1 -1
- data/lib/google/cloud/apigateway/v1/apigateway_pb.rb +2 -2
- data/lib/google/cloud/apigateway/v1/apigateway_service_pb.rb +2 -2
- data/lib/google/cloud/apigateway/v1/apigateway_service_services_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a8987fd17694f7e10ea0413d1d335f537cc8b953adf05666d45312575f979a0
|
4
|
+
data.tar.gz: 18b7cb144ff9ba23a18f3439c9683c313eda9350d2fb1853a4d8f6f02f6e7e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '069237abc0a1be5702d7d34c188c2e379b741fd0a9349acca6f2804023801b4be7fa034747b0bb65ed513925d4d40d0042bd18a875ebbd0b04fb4020a137646e'
|
7
|
+
data.tar.gz: 41fb56daca88f493efa5e3ba3ab55853fe5fb5b6c5c8ea7b53896e9e39e48c471eea5ba1b74f069787642f2fdecc4d66b92e0165ea2ece52e66842f196adb0df
|
@@ -239,6 +239,27 @@ module Google
|
|
239
239
|
#
|
240
240
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
241
241
|
#
|
242
|
+
# @example Basic example
|
243
|
+
# require "google/cloud/api_gateway/v1"
|
244
|
+
#
|
245
|
+
# # Create a client object. The client can be reused for multiple calls.
|
246
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
247
|
+
#
|
248
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
249
|
+
# request = Google::Cloud::ApiGateway::V1::ListGatewaysRequest.new
|
250
|
+
#
|
251
|
+
# # Call the list_gateways method.
|
252
|
+
# result = client.list_gateways request
|
253
|
+
#
|
254
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
255
|
+
# # iterate over all elements by calling #each, and the enumerable
|
256
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
257
|
+
# # methods are also available for managing paging directly.
|
258
|
+
# result.each do |response|
|
259
|
+
# # Each element is of type ::Google::Cloud::ApiGateway::V1::Gateway.
|
260
|
+
# p response
|
261
|
+
# end
|
262
|
+
#
|
242
263
|
def list_gateways request, options = nil
|
243
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
244
265
|
|
@@ -256,9 +277,11 @@ module Google
|
|
256
277
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
257
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
258
279
|
|
259
|
-
header_params = {
|
260
|
-
|
261
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.parent
|
282
|
+
header_params["parent"] = request.parent
|
283
|
+
end
|
284
|
+
|
262
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
263
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
264
287
|
|
@@ -309,6 +332,21 @@ module Google
|
|
309
332
|
#
|
310
333
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
311
334
|
#
|
335
|
+
# @example Basic example
|
336
|
+
# require "google/cloud/api_gateway/v1"
|
337
|
+
#
|
338
|
+
# # Create a client object. The client can be reused for multiple calls.
|
339
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
340
|
+
#
|
341
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
342
|
+
# request = Google::Cloud::ApiGateway::V1::GetGatewayRequest.new
|
343
|
+
#
|
344
|
+
# # Call the get_gateway method.
|
345
|
+
# result = client.get_gateway request
|
346
|
+
#
|
347
|
+
# # The returned object is of type Google::Cloud::ApiGateway::V1::Gateway.
|
348
|
+
# p result
|
349
|
+
#
|
312
350
|
def get_gateway request, options = nil
|
313
351
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
314
352
|
|
@@ -326,9 +364,11 @@ module Google
|
|
326
364
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
327
365
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
328
366
|
|
329
|
-
header_params = {
|
330
|
-
|
331
|
-
|
367
|
+
header_params = {}
|
368
|
+
if request.name
|
369
|
+
header_params["name"] = request.name
|
370
|
+
end
|
371
|
+
|
332
372
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
333
373
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
334
374
|
|
@@ -383,6 +423,28 @@ module Google
|
|
383
423
|
#
|
384
424
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
385
425
|
#
|
426
|
+
# @example Basic example
|
427
|
+
# require "google/cloud/api_gateway/v1"
|
428
|
+
#
|
429
|
+
# # Create a client object. The client can be reused for multiple calls.
|
430
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
431
|
+
#
|
432
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
433
|
+
# request = Google::Cloud::ApiGateway::V1::CreateGatewayRequest.new
|
434
|
+
#
|
435
|
+
# # Call the create_gateway method.
|
436
|
+
# result = client.create_gateway request
|
437
|
+
#
|
438
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
439
|
+
# # object to check the status of an operation, cancel it, or wait
|
440
|
+
# # for results. Here is how to block until completion:
|
441
|
+
# result.wait_until_done! timeout: 60
|
442
|
+
# if result.response?
|
443
|
+
# p result.response
|
444
|
+
# else
|
445
|
+
# puts "Error!"
|
446
|
+
# end
|
447
|
+
#
|
386
448
|
def create_gateway request, options = nil
|
387
449
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
388
450
|
|
@@ -400,9 +462,11 @@ module Google
|
|
400
462
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
401
463
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
402
464
|
|
403
|
-
header_params = {
|
404
|
-
|
405
|
-
|
465
|
+
header_params = {}
|
466
|
+
if request.parent
|
467
|
+
header_params["parent"] = request.parent
|
468
|
+
end
|
469
|
+
|
406
470
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
407
471
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
408
472
|
|
@@ -458,6 +522,28 @@ module Google
|
|
458
522
|
#
|
459
523
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
460
524
|
#
|
525
|
+
# @example Basic example
|
526
|
+
# require "google/cloud/api_gateway/v1"
|
527
|
+
#
|
528
|
+
# # Create a client object. The client can be reused for multiple calls.
|
529
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
530
|
+
#
|
531
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
532
|
+
# request = Google::Cloud::ApiGateway::V1::UpdateGatewayRequest.new
|
533
|
+
#
|
534
|
+
# # Call the update_gateway method.
|
535
|
+
# result = client.update_gateway request
|
536
|
+
#
|
537
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
538
|
+
# # object to check the status of an operation, cancel it, or wait
|
539
|
+
# # for results. Here is how to block until completion:
|
540
|
+
# result.wait_until_done! timeout: 60
|
541
|
+
# if result.response?
|
542
|
+
# p result.response
|
543
|
+
# else
|
544
|
+
# puts "Error!"
|
545
|
+
# end
|
546
|
+
#
|
461
547
|
def update_gateway request, options = nil
|
462
548
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
463
549
|
|
@@ -475,9 +561,11 @@ module Google
|
|
475
561
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
476
562
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
477
563
|
|
478
|
-
header_params = {
|
479
|
-
|
480
|
-
|
564
|
+
header_params = {}
|
565
|
+
if request.gateway&.name
|
566
|
+
header_params["gateway.name"] = request.gateway.name
|
567
|
+
end
|
568
|
+
|
481
569
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
482
570
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
483
571
|
|
@@ -528,6 +616,28 @@ module Google
|
|
528
616
|
#
|
529
617
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
530
618
|
#
|
619
|
+
# @example Basic example
|
620
|
+
# require "google/cloud/api_gateway/v1"
|
621
|
+
#
|
622
|
+
# # Create a client object. The client can be reused for multiple calls.
|
623
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
624
|
+
#
|
625
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
626
|
+
# request = Google::Cloud::ApiGateway::V1::DeleteGatewayRequest.new
|
627
|
+
#
|
628
|
+
# # Call the delete_gateway method.
|
629
|
+
# result = client.delete_gateway request
|
630
|
+
#
|
631
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
632
|
+
# # object to check the status of an operation, cancel it, or wait
|
633
|
+
# # for results. Here is how to block until completion:
|
634
|
+
# result.wait_until_done! timeout: 60
|
635
|
+
# if result.response?
|
636
|
+
# p result.response
|
637
|
+
# else
|
638
|
+
# puts "Error!"
|
639
|
+
# end
|
640
|
+
#
|
531
641
|
def delete_gateway request, options = nil
|
532
642
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
533
643
|
|
@@ -545,9 +655,11 @@ module Google
|
|
545
655
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
546
656
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
547
657
|
|
548
|
-
header_params = {
|
549
|
-
|
550
|
-
|
658
|
+
header_params = {}
|
659
|
+
if request.name
|
660
|
+
header_params["name"] = request.name
|
661
|
+
end
|
662
|
+
|
551
663
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
552
664
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
553
665
|
|
@@ -606,6 +718,27 @@ module Google
|
|
606
718
|
#
|
607
719
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
608
720
|
#
|
721
|
+
# @example Basic example
|
722
|
+
# require "google/cloud/api_gateway/v1"
|
723
|
+
#
|
724
|
+
# # Create a client object. The client can be reused for multiple calls.
|
725
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
726
|
+
#
|
727
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
728
|
+
# request = Google::Cloud::ApiGateway::V1::ListApisRequest.new
|
729
|
+
#
|
730
|
+
# # Call the list_apis method.
|
731
|
+
# result = client.list_apis request
|
732
|
+
#
|
733
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
734
|
+
# # iterate over all elements by calling #each, and the enumerable
|
735
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
736
|
+
# # methods are also available for managing paging directly.
|
737
|
+
# result.each do |response|
|
738
|
+
# # Each element is of type ::Google::Cloud::ApiGateway::V1::Api.
|
739
|
+
# p response
|
740
|
+
# end
|
741
|
+
#
|
609
742
|
def list_apis request, options = nil
|
610
743
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
611
744
|
|
@@ -623,9 +756,11 @@ module Google
|
|
623
756
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
624
757
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
625
758
|
|
626
|
-
header_params = {
|
627
|
-
|
628
|
-
|
759
|
+
header_params = {}
|
760
|
+
if request.parent
|
761
|
+
header_params["parent"] = request.parent
|
762
|
+
end
|
763
|
+
|
629
764
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
630
765
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
631
766
|
|
@@ -676,6 +811,21 @@ module Google
|
|
676
811
|
#
|
677
812
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
678
813
|
#
|
814
|
+
# @example Basic example
|
815
|
+
# require "google/cloud/api_gateway/v1"
|
816
|
+
#
|
817
|
+
# # Create a client object. The client can be reused for multiple calls.
|
818
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
819
|
+
#
|
820
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
821
|
+
# request = Google::Cloud::ApiGateway::V1::GetApiRequest.new
|
822
|
+
#
|
823
|
+
# # Call the get_api method.
|
824
|
+
# result = client.get_api request
|
825
|
+
#
|
826
|
+
# # The returned object is of type Google::Cloud::ApiGateway::V1::Api.
|
827
|
+
# p result
|
828
|
+
#
|
679
829
|
def get_api request, options = nil
|
680
830
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
681
831
|
|
@@ -693,9 +843,11 @@ module Google
|
|
693
843
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
694
844
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
695
845
|
|
696
|
-
header_params = {
|
697
|
-
|
698
|
-
|
846
|
+
header_params = {}
|
847
|
+
if request.name
|
848
|
+
header_params["name"] = request.name
|
849
|
+
end
|
850
|
+
|
699
851
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
700
852
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
701
853
|
|
@@ -750,6 +902,28 @@ module Google
|
|
750
902
|
#
|
751
903
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
752
904
|
#
|
905
|
+
# @example Basic example
|
906
|
+
# require "google/cloud/api_gateway/v1"
|
907
|
+
#
|
908
|
+
# # Create a client object. The client can be reused for multiple calls.
|
909
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
910
|
+
#
|
911
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
912
|
+
# request = Google::Cloud::ApiGateway::V1::CreateApiRequest.new
|
913
|
+
#
|
914
|
+
# # Call the create_api method.
|
915
|
+
# result = client.create_api request
|
916
|
+
#
|
917
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
918
|
+
# # object to check the status of an operation, cancel it, or wait
|
919
|
+
# # for results. Here is how to block until completion:
|
920
|
+
# result.wait_until_done! timeout: 60
|
921
|
+
# if result.response?
|
922
|
+
# p result.response
|
923
|
+
# else
|
924
|
+
# puts "Error!"
|
925
|
+
# end
|
926
|
+
#
|
753
927
|
def create_api request, options = nil
|
754
928
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
755
929
|
|
@@ -767,9 +941,11 @@ module Google
|
|
767
941
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
768
942
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
769
943
|
|
770
|
-
header_params = {
|
771
|
-
|
772
|
-
|
944
|
+
header_params = {}
|
945
|
+
if request.parent
|
946
|
+
header_params["parent"] = request.parent
|
947
|
+
end
|
948
|
+
|
773
949
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
774
950
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
775
951
|
|
@@ -825,6 +1001,28 @@ module Google
|
|
825
1001
|
#
|
826
1002
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
827
1003
|
#
|
1004
|
+
# @example Basic example
|
1005
|
+
# require "google/cloud/api_gateway/v1"
|
1006
|
+
#
|
1007
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1008
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1009
|
+
#
|
1010
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1011
|
+
# request = Google::Cloud::ApiGateway::V1::UpdateApiRequest.new
|
1012
|
+
#
|
1013
|
+
# # Call the update_api method.
|
1014
|
+
# result = client.update_api request
|
1015
|
+
#
|
1016
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1017
|
+
# # object to check the status of an operation, cancel it, or wait
|
1018
|
+
# # for results. Here is how to block until completion:
|
1019
|
+
# result.wait_until_done! timeout: 60
|
1020
|
+
# if result.response?
|
1021
|
+
# p result.response
|
1022
|
+
# else
|
1023
|
+
# puts "Error!"
|
1024
|
+
# end
|
1025
|
+
#
|
828
1026
|
def update_api request, options = nil
|
829
1027
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
830
1028
|
|
@@ -842,9 +1040,11 @@ module Google
|
|
842
1040
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
843
1041
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
844
1042
|
|
845
|
-
header_params = {
|
846
|
-
|
847
|
-
|
1043
|
+
header_params = {}
|
1044
|
+
if request.api&.name
|
1045
|
+
header_params["api.name"] = request.api.name
|
1046
|
+
end
|
1047
|
+
|
848
1048
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
849
1049
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
850
1050
|
|
@@ -895,6 +1095,28 @@ module Google
|
|
895
1095
|
#
|
896
1096
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
897
1097
|
#
|
1098
|
+
# @example Basic example
|
1099
|
+
# require "google/cloud/api_gateway/v1"
|
1100
|
+
#
|
1101
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1102
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1103
|
+
#
|
1104
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1105
|
+
# request = Google::Cloud::ApiGateway::V1::DeleteApiRequest.new
|
1106
|
+
#
|
1107
|
+
# # Call the delete_api method.
|
1108
|
+
# result = client.delete_api request
|
1109
|
+
#
|
1110
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1111
|
+
# # object to check the status of an operation, cancel it, or wait
|
1112
|
+
# # for results. Here is how to block until completion:
|
1113
|
+
# result.wait_until_done! timeout: 60
|
1114
|
+
# if result.response?
|
1115
|
+
# p result.response
|
1116
|
+
# else
|
1117
|
+
# puts "Error!"
|
1118
|
+
# end
|
1119
|
+
#
|
898
1120
|
def delete_api request, options = nil
|
899
1121
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
900
1122
|
|
@@ -912,9 +1134,11 @@ module Google
|
|
912
1134
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
913
1135
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
914
1136
|
|
915
|
-
header_params = {
|
916
|
-
|
917
|
-
|
1137
|
+
header_params = {}
|
1138
|
+
if request.name
|
1139
|
+
header_params["name"] = request.name
|
1140
|
+
end
|
1141
|
+
|
918
1142
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
919
1143
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
920
1144
|
|
@@ -973,6 +1197,27 @@ module Google
|
|
973
1197
|
#
|
974
1198
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
975
1199
|
#
|
1200
|
+
# @example Basic example
|
1201
|
+
# require "google/cloud/api_gateway/v1"
|
1202
|
+
#
|
1203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1204
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1205
|
+
#
|
1206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1207
|
+
# request = Google::Cloud::ApiGateway::V1::ListApiConfigsRequest.new
|
1208
|
+
#
|
1209
|
+
# # Call the list_api_configs method.
|
1210
|
+
# result = client.list_api_configs request
|
1211
|
+
#
|
1212
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1213
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1214
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1215
|
+
# # methods are also available for managing paging directly.
|
1216
|
+
# result.each do |response|
|
1217
|
+
# # Each element is of type ::Google::Cloud::ApiGateway::V1::ApiConfig.
|
1218
|
+
# p response
|
1219
|
+
# end
|
1220
|
+
#
|
976
1221
|
def list_api_configs request, options = nil
|
977
1222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
978
1223
|
|
@@ -990,9 +1235,11 @@ module Google
|
|
990
1235
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
991
1236
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
992
1237
|
|
993
|
-
header_params = {
|
994
|
-
|
995
|
-
|
1238
|
+
header_params = {}
|
1239
|
+
if request.parent
|
1240
|
+
header_params["parent"] = request.parent
|
1241
|
+
end
|
1242
|
+
|
996
1243
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
997
1244
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
998
1245
|
|
@@ -1046,6 +1293,21 @@ module Google
|
|
1046
1293
|
#
|
1047
1294
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1048
1295
|
#
|
1296
|
+
# @example Basic example
|
1297
|
+
# require "google/cloud/api_gateway/v1"
|
1298
|
+
#
|
1299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1300
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1301
|
+
#
|
1302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1303
|
+
# request = Google::Cloud::ApiGateway::V1::GetApiConfigRequest.new
|
1304
|
+
#
|
1305
|
+
# # Call the get_api_config method.
|
1306
|
+
# result = client.get_api_config request
|
1307
|
+
#
|
1308
|
+
# # The returned object is of type Google::Cloud::ApiGateway::V1::ApiConfig.
|
1309
|
+
# p result
|
1310
|
+
#
|
1049
1311
|
def get_api_config request, options = nil
|
1050
1312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1051
1313
|
|
@@ -1063,9 +1325,11 @@ module Google
|
|
1063
1325
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
1064
1326
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1065
1327
|
|
1066
|
-
header_params = {
|
1067
|
-
|
1068
|
-
|
1328
|
+
header_params = {}
|
1329
|
+
if request.name
|
1330
|
+
header_params["name"] = request.name
|
1331
|
+
end
|
1332
|
+
|
1069
1333
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1070
1334
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1071
1335
|
|
@@ -1120,6 +1384,28 @@ module Google
|
|
1120
1384
|
#
|
1121
1385
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1122
1386
|
#
|
1387
|
+
# @example Basic example
|
1388
|
+
# require "google/cloud/api_gateway/v1"
|
1389
|
+
#
|
1390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1391
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1392
|
+
#
|
1393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1394
|
+
# request = Google::Cloud::ApiGateway::V1::CreateApiConfigRequest.new
|
1395
|
+
#
|
1396
|
+
# # Call the create_api_config method.
|
1397
|
+
# result = client.create_api_config request
|
1398
|
+
#
|
1399
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1400
|
+
# # object to check the status of an operation, cancel it, or wait
|
1401
|
+
# # for results. Here is how to block until completion:
|
1402
|
+
# result.wait_until_done! timeout: 60
|
1403
|
+
# if result.response?
|
1404
|
+
# p result.response
|
1405
|
+
# else
|
1406
|
+
# puts "Error!"
|
1407
|
+
# end
|
1408
|
+
#
|
1123
1409
|
def create_api_config request, options = nil
|
1124
1410
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1125
1411
|
|
@@ -1137,9 +1423,11 @@ module Google
|
|
1137
1423
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
1138
1424
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1139
1425
|
|
1140
|
-
header_params = {
|
1141
|
-
|
1142
|
-
|
1426
|
+
header_params = {}
|
1427
|
+
if request.parent
|
1428
|
+
header_params["parent"] = request.parent
|
1429
|
+
end
|
1430
|
+
|
1143
1431
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1144
1432
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1145
1433
|
|
@@ -1195,6 +1483,28 @@ module Google
|
|
1195
1483
|
#
|
1196
1484
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1197
1485
|
#
|
1486
|
+
# @example Basic example
|
1487
|
+
# require "google/cloud/api_gateway/v1"
|
1488
|
+
#
|
1489
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1490
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1491
|
+
#
|
1492
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1493
|
+
# request = Google::Cloud::ApiGateway::V1::UpdateApiConfigRequest.new
|
1494
|
+
#
|
1495
|
+
# # Call the update_api_config method.
|
1496
|
+
# result = client.update_api_config request
|
1497
|
+
#
|
1498
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1499
|
+
# # object to check the status of an operation, cancel it, or wait
|
1500
|
+
# # for results. Here is how to block until completion:
|
1501
|
+
# result.wait_until_done! timeout: 60
|
1502
|
+
# if result.response?
|
1503
|
+
# p result.response
|
1504
|
+
# else
|
1505
|
+
# puts "Error!"
|
1506
|
+
# end
|
1507
|
+
#
|
1198
1508
|
def update_api_config request, options = nil
|
1199
1509
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1200
1510
|
|
@@ -1212,9 +1522,11 @@ module Google
|
|
1212
1522
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
1213
1523
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1214
1524
|
|
1215
|
-
header_params = {
|
1216
|
-
|
1217
|
-
|
1525
|
+
header_params = {}
|
1526
|
+
if request.api_config&.name
|
1527
|
+
header_params["api_config.name"] = request.api_config.name
|
1528
|
+
end
|
1529
|
+
|
1218
1530
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1219
1531
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1220
1532
|
|
@@ -1265,6 +1577,28 @@ module Google
|
|
1265
1577
|
#
|
1266
1578
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1267
1579
|
#
|
1580
|
+
# @example Basic example
|
1581
|
+
# require "google/cloud/api_gateway/v1"
|
1582
|
+
#
|
1583
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1584
|
+
# client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
|
1585
|
+
#
|
1586
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1587
|
+
# request = Google::Cloud::ApiGateway::V1::DeleteApiConfigRequest.new
|
1588
|
+
#
|
1589
|
+
# # Call the delete_api_config method.
|
1590
|
+
# result = client.delete_api_config request
|
1591
|
+
#
|
1592
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1593
|
+
# # object to check the status of an operation, cancel it, or wait
|
1594
|
+
# # for results. Here is how to block until completion:
|
1595
|
+
# result.wait_until_done! timeout: 60
|
1596
|
+
# if result.response?
|
1597
|
+
# p result.response
|
1598
|
+
# else
|
1599
|
+
# puts "Error!"
|
1600
|
+
# end
|
1601
|
+
#
|
1268
1602
|
def delete_api_config request, options = nil
|
1269
1603
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1270
1604
|
|
@@ -1282,9 +1616,11 @@ module Google
|
|
1282
1616
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
1283
1617
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1284
1618
|
|
1285
|
-
header_params = {
|
1286
|
-
|
1287
|
-
|
1619
|
+
header_params = {}
|
1620
|
+
if request.name
|
1621
|
+
header_params["name"] = request.name
|
1622
|
+
end
|
1623
|
+
|
1288
1624
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1289
1625
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1290
1626
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/apigateway/v1/apigateway.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/field_mask_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/apigateway/v1/apigateway.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.apigateway.v1.Api" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/apigateway/v1/apigateway_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/cloud/apigateway/v1/apigateway_pb'
|
9
7
|
require 'google/longrunning/operations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/apigateway/v1/apigateway_service.proto", :syntax => :proto3) do
|
12
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-api_gateway-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|