google-cloud-network_connectivity-v1alpha1 0.4.3 → 0.4.4
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/lib/google/cloud/network_connectivity/v1alpha1/hub_service/client.rb +254 -30
- data/lib/google/cloud/network_connectivity/v1alpha1/hub_service/operations.rb +115 -12
- data/lib/google/cloud/network_connectivity/v1alpha1/version.rb +1 -1
- data/lib/google/cloud/networkconnectivity/v1alpha1/common_pb.rb +2 -2
- data/lib/google/cloud/networkconnectivity/v1alpha1/hub_pb.rb +2 -2
- data/lib/google/cloud/networkconnectivity/v1alpha1/hub_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: c82e19c299e16a67a9d924268625ececd17934ecce696464fe9f3269ae0b7622
|
4
|
+
data.tar.gz: 026d9931aab0190748c8f34afb83c4a2c5d0f4c8e6456fb520f170cac2bee0f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741d1c114c661e48dedc8eb8b4016beab75399dd8350e8a3d7c573d807bb37c3f2d7139af6b155c57fc1b04e7f0e0b94a9f69e2c19688c04fb52541c4f9510fb
|
7
|
+
data.tar.gz: 8cc7226c37df5ba0db099169ec8e2147d725abeea5f86fed971b812d176b3444d3dd094c4b164d76941c8530cc5781cdd056cd063ca791051a5bfa19d9ab3677
|
@@ -213,6 +213,27 @@ module Google
|
|
213
213
|
#
|
214
214
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
215
215
|
#
|
216
|
+
# @example Basic example
|
217
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
218
|
+
#
|
219
|
+
# # Create a client object. The client can be reused for multiple calls.
|
220
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
221
|
+
#
|
222
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
223
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::ListHubsRequest.new
|
224
|
+
#
|
225
|
+
# # Call the list_hubs method.
|
226
|
+
# result = client.list_hubs request
|
227
|
+
#
|
228
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
229
|
+
# # iterate over all elements by calling #each, and the enumerable
|
230
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
231
|
+
# # methods are also available for managing paging directly.
|
232
|
+
# result.each do |response|
|
233
|
+
# # Each element is of type ::Google::Cloud::NetworkConnectivity::V1alpha1::Hub.
|
234
|
+
# p response
|
235
|
+
# end
|
236
|
+
#
|
216
237
|
def list_hubs request, options = nil
|
217
238
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
239
|
|
@@ -230,9 +251,11 @@ module Google
|
|
230
251
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
231
252
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
232
253
|
|
233
|
-
header_params = {
|
234
|
-
|
235
|
-
|
254
|
+
header_params = {}
|
255
|
+
if request.parent
|
256
|
+
header_params["parent"] = request.parent
|
257
|
+
end
|
258
|
+
|
236
259
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
237
260
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
238
261
|
|
@@ -282,6 +305,21 @@ module Google
|
|
282
305
|
#
|
283
306
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
284
307
|
#
|
308
|
+
# @example Basic example
|
309
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
310
|
+
#
|
311
|
+
# # Create a client object. The client can be reused for multiple calls.
|
312
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
313
|
+
#
|
314
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
315
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::GetHubRequest.new
|
316
|
+
#
|
317
|
+
# # Call the get_hub method.
|
318
|
+
# result = client.get_hub request
|
319
|
+
#
|
320
|
+
# # The returned object is of type Google::Cloud::NetworkConnectivity::V1alpha1::Hub.
|
321
|
+
# p result
|
322
|
+
#
|
285
323
|
def get_hub request, options = nil
|
286
324
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
325
|
|
@@ -299,9 +337,11 @@ module Google
|
|
299
337
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
300
338
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
301
339
|
|
302
|
-
header_params = {
|
303
|
-
|
304
|
-
|
340
|
+
header_params = {}
|
341
|
+
if request.name
|
342
|
+
header_params["name"] = request.name
|
343
|
+
end
|
344
|
+
|
305
345
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
306
346
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
307
347
|
|
@@ -368,6 +408,28 @@ module Google
|
|
368
408
|
#
|
369
409
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
370
410
|
#
|
411
|
+
# @example Basic example
|
412
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
413
|
+
#
|
414
|
+
# # Create a client object. The client can be reused for multiple calls.
|
415
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
416
|
+
#
|
417
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
418
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::CreateHubRequest.new
|
419
|
+
#
|
420
|
+
# # Call the create_hub method.
|
421
|
+
# result = client.create_hub request
|
422
|
+
#
|
423
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
424
|
+
# # object to check the status of an operation, cancel it, or wait
|
425
|
+
# # for results. Here is how to block until completion:
|
426
|
+
# result.wait_until_done! timeout: 60
|
427
|
+
# if result.response?
|
428
|
+
# p result.response
|
429
|
+
# else
|
430
|
+
# puts "Error!"
|
431
|
+
# end
|
432
|
+
#
|
371
433
|
def create_hub request, options = nil
|
372
434
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
373
435
|
|
@@ -385,9 +447,11 @@ module Google
|
|
385
447
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
386
448
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
387
449
|
|
388
|
-
header_params = {
|
389
|
-
|
390
|
-
|
450
|
+
header_params = {}
|
451
|
+
if request.parent
|
452
|
+
header_params["parent"] = request.parent
|
453
|
+
end
|
454
|
+
|
391
455
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
392
456
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
393
457
|
|
@@ -457,6 +521,28 @@ module Google
|
|
457
521
|
#
|
458
522
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
459
523
|
#
|
524
|
+
# @example Basic example
|
525
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
526
|
+
#
|
527
|
+
# # Create a client object. The client can be reused for multiple calls.
|
528
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
529
|
+
#
|
530
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
531
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::UpdateHubRequest.new
|
532
|
+
#
|
533
|
+
# # Call the update_hub method.
|
534
|
+
# result = client.update_hub request
|
535
|
+
#
|
536
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
537
|
+
# # object to check the status of an operation, cancel it, or wait
|
538
|
+
# # for results. Here is how to block until completion:
|
539
|
+
# result.wait_until_done! timeout: 60
|
540
|
+
# if result.response?
|
541
|
+
# p result.response
|
542
|
+
# else
|
543
|
+
# puts "Error!"
|
544
|
+
# end
|
545
|
+
#
|
460
546
|
def update_hub request, options = nil
|
461
547
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
462
548
|
|
@@ -474,9 +560,11 @@ module Google
|
|
474
560
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
475
561
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
476
562
|
|
477
|
-
header_params = {
|
478
|
-
|
479
|
-
|
563
|
+
header_params = {}
|
564
|
+
if request.hub&.name
|
565
|
+
header_params["hub.name"] = request.hub.name
|
566
|
+
end
|
567
|
+
|
480
568
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
481
569
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
482
570
|
|
@@ -540,6 +628,28 @@ module Google
|
|
540
628
|
#
|
541
629
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
542
630
|
#
|
631
|
+
# @example Basic example
|
632
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
633
|
+
#
|
634
|
+
# # Create a client object. The client can be reused for multiple calls.
|
635
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
636
|
+
#
|
637
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
638
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::DeleteHubRequest.new
|
639
|
+
#
|
640
|
+
# # Call the delete_hub method.
|
641
|
+
# result = client.delete_hub request
|
642
|
+
#
|
643
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
644
|
+
# # object to check the status of an operation, cancel it, or wait
|
645
|
+
# # for results. Here is how to block until completion:
|
646
|
+
# result.wait_until_done! timeout: 60
|
647
|
+
# if result.response?
|
648
|
+
# p result.response
|
649
|
+
# else
|
650
|
+
# puts "Error!"
|
651
|
+
# end
|
652
|
+
#
|
543
653
|
def delete_hub request, options = nil
|
544
654
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
545
655
|
|
@@ -557,9 +667,11 @@ module Google
|
|
557
667
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
558
668
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
559
669
|
|
560
|
-
header_params = {
|
561
|
-
|
562
|
-
|
670
|
+
header_params = {}
|
671
|
+
if request.name
|
672
|
+
header_params["name"] = request.name
|
673
|
+
end
|
674
|
+
|
563
675
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
564
676
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
565
677
|
|
@@ -617,6 +729,27 @@ module Google
|
|
617
729
|
#
|
618
730
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
619
731
|
#
|
732
|
+
# @example Basic example
|
733
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
734
|
+
#
|
735
|
+
# # Create a client object. The client can be reused for multiple calls.
|
736
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
737
|
+
#
|
738
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
739
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::ListSpokesRequest.new
|
740
|
+
#
|
741
|
+
# # Call the list_spokes method.
|
742
|
+
# result = client.list_spokes request
|
743
|
+
#
|
744
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
745
|
+
# # iterate over all elements by calling #each, and the enumerable
|
746
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
747
|
+
# # methods are also available for managing paging directly.
|
748
|
+
# result.each do |response|
|
749
|
+
# # Each element is of type ::Google::Cloud::NetworkConnectivity::V1alpha1::Spoke.
|
750
|
+
# p response
|
751
|
+
# end
|
752
|
+
#
|
620
753
|
def list_spokes request, options = nil
|
621
754
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
622
755
|
|
@@ -634,9 +767,11 @@ module Google
|
|
634
767
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
635
768
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
636
769
|
|
637
|
-
header_params = {
|
638
|
-
|
639
|
-
|
770
|
+
header_params = {}
|
771
|
+
if request.parent
|
772
|
+
header_params["parent"] = request.parent
|
773
|
+
end
|
774
|
+
|
640
775
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
641
776
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
642
777
|
|
@@ -686,6 +821,21 @@ module Google
|
|
686
821
|
#
|
687
822
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
688
823
|
#
|
824
|
+
# @example Basic example
|
825
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
826
|
+
#
|
827
|
+
# # Create a client object. The client can be reused for multiple calls.
|
828
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
829
|
+
#
|
830
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
831
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::GetSpokeRequest.new
|
832
|
+
#
|
833
|
+
# # Call the get_spoke method.
|
834
|
+
# result = client.get_spoke request
|
835
|
+
#
|
836
|
+
# # The returned object is of type Google::Cloud::NetworkConnectivity::V1alpha1::Spoke.
|
837
|
+
# p result
|
838
|
+
#
|
689
839
|
def get_spoke request, options = nil
|
690
840
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
691
841
|
|
@@ -703,9 +853,11 @@ module Google
|
|
703
853
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
704
854
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
705
855
|
|
706
|
-
header_params = {
|
707
|
-
|
708
|
-
|
856
|
+
header_params = {}
|
857
|
+
if request.name
|
858
|
+
header_params["name"] = request.name
|
859
|
+
end
|
860
|
+
|
709
861
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
710
862
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
711
863
|
|
@@ -772,6 +924,28 @@ module Google
|
|
772
924
|
#
|
773
925
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
774
926
|
#
|
927
|
+
# @example Basic example
|
928
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
929
|
+
#
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
931
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
932
|
+
#
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
934
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::CreateSpokeRequest.new
|
935
|
+
#
|
936
|
+
# # Call the create_spoke method.
|
937
|
+
# result = client.create_spoke request
|
938
|
+
#
|
939
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
940
|
+
# # object to check the status of an operation, cancel it, or wait
|
941
|
+
# # for results. Here is how to block until completion:
|
942
|
+
# result.wait_until_done! timeout: 60
|
943
|
+
# if result.response?
|
944
|
+
# p result.response
|
945
|
+
# else
|
946
|
+
# puts "Error!"
|
947
|
+
# end
|
948
|
+
#
|
775
949
|
def create_spoke request, options = nil
|
776
950
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
777
951
|
|
@@ -789,9 +963,11 @@ module Google
|
|
789
963
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
790
964
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
791
965
|
|
792
|
-
header_params = {
|
793
|
-
|
794
|
-
|
966
|
+
header_params = {}
|
967
|
+
if request.parent
|
968
|
+
header_params["parent"] = request.parent
|
969
|
+
end
|
970
|
+
|
795
971
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
796
972
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
797
973
|
|
@@ -861,6 +1037,28 @@ module Google
|
|
861
1037
|
#
|
862
1038
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
863
1039
|
#
|
1040
|
+
# @example Basic example
|
1041
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
1042
|
+
#
|
1043
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1044
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
1045
|
+
#
|
1046
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1047
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::UpdateSpokeRequest.new
|
1048
|
+
#
|
1049
|
+
# # Call the update_spoke method.
|
1050
|
+
# result = client.update_spoke request
|
1051
|
+
#
|
1052
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1053
|
+
# # object to check the status of an operation, cancel it, or wait
|
1054
|
+
# # for results. Here is how to block until completion:
|
1055
|
+
# result.wait_until_done! timeout: 60
|
1056
|
+
# if result.response?
|
1057
|
+
# p result.response
|
1058
|
+
# else
|
1059
|
+
# puts "Error!"
|
1060
|
+
# end
|
1061
|
+
#
|
864
1062
|
def update_spoke request, options = nil
|
865
1063
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
866
1064
|
|
@@ -878,9 +1076,11 @@ module Google
|
|
878
1076
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
879
1077
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
880
1078
|
|
881
|
-
header_params = {
|
882
|
-
|
883
|
-
|
1079
|
+
header_params = {}
|
1080
|
+
if request.spoke&.name
|
1081
|
+
header_params["spoke.name"] = request.spoke.name
|
1082
|
+
end
|
1083
|
+
|
884
1084
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
885
1085
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
886
1086
|
|
@@ -944,6 +1144,28 @@ module Google
|
|
944
1144
|
#
|
945
1145
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
946
1146
|
#
|
1147
|
+
# @example Basic example
|
1148
|
+
# require "google/cloud/network_connectivity/v1alpha1"
|
1149
|
+
#
|
1150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1151
|
+
# client = Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client.new
|
1152
|
+
#
|
1153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1154
|
+
# request = Google::Cloud::NetworkConnectivity::V1alpha1::DeleteSpokeRequest.new
|
1155
|
+
#
|
1156
|
+
# # Call the delete_spoke method.
|
1157
|
+
# result = client.delete_spoke request
|
1158
|
+
#
|
1159
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1160
|
+
# # object to check the status of an operation, cancel it, or wait
|
1161
|
+
# # for results. Here is how to block until completion:
|
1162
|
+
# result.wait_until_done! timeout: 60
|
1163
|
+
# if result.response?
|
1164
|
+
# p result.response
|
1165
|
+
# else
|
1166
|
+
# puts "Error!"
|
1167
|
+
# end
|
1168
|
+
#
|
947
1169
|
def delete_spoke request, options = nil
|
948
1170
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
949
1171
|
|
@@ -961,9 +1183,11 @@ module Google
|
|
961
1183
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1alpha1::VERSION
|
962
1184
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
963
1185
|
|
964
|
-
header_params = {
|
965
|
-
|
966
|
-
|
1186
|
+
header_params = {}
|
1187
|
+
if request.name
|
1188
|
+
header_params["name"] = request.name
|
1189
|
+
end
|
1190
|
+
|
967
1191
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
968
1192
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
969
1193
|
|
@@ -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::NetworkConnectivity::V1alpha1::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::NetworkConnectivity::V1alpha1::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::NetworkConnectivity::V1alpha1::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::NetworkConnectivity::V1alpha1::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,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/networkconnectivity/v1alpha1/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/networkconnectivity/v1alpha1/common.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.networkconnectivity.v1alpha1.OperationMetadata" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/networkconnectivity/v1alpha1/hub.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/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/longrunning/operations_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
12
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/networkconnectivity/v1alpha1/hub.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.networkconnectivity.v1alpha1.Hub" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-network_connectivity-v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.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
|