google-cloud-datastream-v1alpha1 0.1.0 → 0.1.1
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/datastream/v1alpha1/datastream/client.rb +521 -63
- data/lib/google/cloud/datastream/v1alpha1/datastream/operations.rb +115 -12
- data/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb +2 -2
- data/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb +2 -2
- data/lib/google/cloud/datastream/v1alpha1/datastream_services_pb.rb +1 -1
- data/lib/google/cloud/datastream/v1alpha1/version.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: c9924948b6b3fceffcbc936579a0caadf0553cdcb7680afe94f8c263c3a52131
|
4
|
+
data.tar.gz: 3ad7ef95732f837d087912ddc98ced0edc2bfd6a7df736f2fb48d5175428b91f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6efbf3b058e4bed8f0f995381c50b02bbdc01c481bd33becd2a63239582248a66f64ff95471419723560cbe7caa6608bda81c9d67d3d131bcaf60bf27cf66121
|
7
|
+
data.tar.gz: e402f43a7added0f290660e2bdf041d978a322d59d1f6b2841532806dc27e3175b300cafa08b69b52f449d98469e65509eefa2c3518232546bdb2453408160d9
|
@@ -225,6 +225,27 @@ module Google
|
|
225
225
|
#
|
226
226
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
227
227
|
#
|
228
|
+
# @example Basic example
|
229
|
+
# require "google/cloud/datastream/v1alpha1"
|
230
|
+
#
|
231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
232
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
233
|
+
#
|
234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
235
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListConnectionProfilesRequest.new
|
236
|
+
#
|
237
|
+
# # Call the list_connection_profiles method.
|
238
|
+
# result = client.list_connection_profiles request
|
239
|
+
#
|
240
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
241
|
+
# # iterate over all elements by calling #each, and the enumerable
|
242
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
243
|
+
# # methods are also available for managing paging directly.
|
244
|
+
# result.each do |response|
|
245
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::ConnectionProfile.
|
246
|
+
# p response
|
247
|
+
# end
|
248
|
+
#
|
228
249
|
def list_connection_profiles request, options = nil
|
229
250
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
230
251
|
|
@@ -242,9 +263,11 @@ module Google
|
|
242
263
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
243
264
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
244
265
|
|
245
|
-
header_params = {
|
246
|
-
|
247
|
-
|
266
|
+
header_params = {}
|
267
|
+
if request.parent
|
268
|
+
header_params["parent"] = request.parent
|
269
|
+
end
|
270
|
+
|
248
271
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
249
272
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
250
273
|
|
@@ -294,6 +317,21 @@ module Google
|
|
294
317
|
#
|
295
318
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
296
319
|
#
|
320
|
+
# @example Basic example
|
321
|
+
# require "google/cloud/datastream/v1alpha1"
|
322
|
+
#
|
323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
324
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
325
|
+
#
|
326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
327
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetConnectionProfileRequest.new
|
328
|
+
#
|
329
|
+
# # Call the get_connection_profile method.
|
330
|
+
# result = client.get_connection_profile request
|
331
|
+
#
|
332
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::ConnectionProfile.
|
333
|
+
# p result
|
334
|
+
#
|
297
335
|
def get_connection_profile request, options = nil
|
298
336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
299
337
|
|
@@ -311,9 +349,11 @@ module Google
|
|
311
349
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
312
350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
313
351
|
|
314
|
-
header_params = {
|
315
|
-
|
316
|
-
|
352
|
+
header_params = {}
|
353
|
+
if request.name
|
354
|
+
header_params["name"] = request.name
|
355
|
+
end
|
356
|
+
|
317
357
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
318
358
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
319
359
|
|
@@ -380,6 +420,28 @@ module Google
|
|
380
420
|
#
|
381
421
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
382
422
|
#
|
423
|
+
# @example Basic example
|
424
|
+
# require "google/cloud/datastream/v1alpha1"
|
425
|
+
#
|
426
|
+
# # Create a client object. The client can be reused for multiple calls.
|
427
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
428
|
+
#
|
429
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
430
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreateConnectionProfileRequest.new
|
431
|
+
#
|
432
|
+
# # Call the create_connection_profile method.
|
433
|
+
# result = client.create_connection_profile request
|
434
|
+
#
|
435
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
436
|
+
# # object to check the status of an operation, cancel it, or wait
|
437
|
+
# # for results. Here is how to block until completion:
|
438
|
+
# result.wait_until_done! timeout: 60
|
439
|
+
# if result.response?
|
440
|
+
# p result.response
|
441
|
+
# else
|
442
|
+
# puts "Error!"
|
443
|
+
# end
|
444
|
+
#
|
383
445
|
def create_connection_profile request, options = nil
|
384
446
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
385
447
|
|
@@ -397,9 +459,11 @@ module Google
|
|
397
459
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
398
460
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
461
|
|
400
|
-
header_params = {
|
401
|
-
|
402
|
-
|
462
|
+
header_params = {}
|
463
|
+
if request.parent
|
464
|
+
header_params["parent"] = request.parent
|
465
|
+
end
|
466
|
+
|
403
467
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
404
468
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
405
469
|
|
@@ -469,6 +533,28 @@ module Google
|
|
469
533
|
#
|
470
534
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
471
535
|
#
|
536
|
+
# @example Basic example
|
537
|
+
# require "google/cloud/datastream/v1alpha1"
|
538
|
+
#
|
539
|
+
# # Create a client object. The client can be reused for multiple calls.
|
540
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
541
|
+
#
|
542
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
543
|
+
# request = Google::Cloud::Datastream::V1alpha1::UpdateConnectionProfileRequest.new
|
544
|
+
#
|
545
|
+
# # Call the update_connection_profile method.
|
546
|
+
# result = client.update_connection_profile request
|
547
|
+
#
|
548
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
549
|
+
# # object to check the status of an operation, cancel it, or wait
|
550
|
+
# # for results. Here is how to block until completion:
|
551
|
+
# result.wait_until_done! timeout: 60
|
552
|
+
# if result.response?
|
553
|
+
# p result.response
|
554
|
+
# else
|
555
|
+
# puts "Error!"
|
556
|
+
# end
|
557
|
+
#
|
472
558
|
def update_connection_profile request, options = nil
|
473
559
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
474
560
|
|
@@ -486,9 +572,11 @@ module Google
|
|
486
572
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
487
573
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
488
574
|
|
489
|
-
header_params = {
|
490
|
-
|
491
|
-
|
575
|
+
header_params = {}
|
576
|
+
if request.connection_profile&.name
|
577
|
+
header_params["connection_profile.name"] = request.connection_profile.name
|
578
|
+
end
|
579
|
+
|
492
580
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
493
581
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
494
582
|
|
@@ -552,6 +640,28 @@ module Google
|
|
552
640
|
#
|
553
641
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
554
642
|
#
|
643
|
+
# @example Basic example
|
644
|
+
# require "google/cloud/datastream/v1alpha1"
|
645
|
+
#
|
646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
647
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
648
|
+
#
|
649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
650
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeleteConnectionProfileRequest.new
|
651
|
+
#
|
652
|
+
# # Call the delete_connection_profile method.
|
653
|
+
# result = client.delete_connection_profile request
|
654
|
+
#
|
655
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
656
|
+
# # object to check the status of an operation, cancel it, or wait
|
657
|
+
# # for results. Here is how to block until completion:
|
658
|
+
# result.wait_until_done! timeout: 60
|
659
|
+
# if result.response?
|
660
|
+
# p result.response
|
661
|
+
# else
|
662
|
+
# puts "Error!"
|
663
|
+
# end
|
664
|
+
#
|
555
665
|
def delete_connection_profile request, options = nil
|
556
666
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
557
667
|
|
@@ -569,9 +679,11 @@ module Google
|
|
569
679
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
570
680
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
571
681
|
|
572
|
-
header_params = {
|
573
|
-
|
574
|
-
|
682
|
+
header_params = {}
|
683
|
+
if request.name
|
684
|
+
header_params["name"] = request.name
|
685
|
+
end
|
686
|
+
|
575
687
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
576
688
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
577
689
|
|
@@ -638,6 +750,21 @@ module Google
|
|
638
750
|
#
|
639
751
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
640
752
|
#
|
753
|
+
# @example Basic example
|
754
|
+
# require "google/cloud/datastream/v1alpha1"
|
755
|
+
#
|
756
|
+
# # Create a client object. The client can be reused for multiple calls.
|
757
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
758
|
+
#
|
759
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
760
|
+
# request = Google::Cloud::Datastream::V1alpha1::DiscoverConnectionProfileRequest.new
|
761
|
+
#
|
762
|
+
# # Call the discover_connection_profile method.
|
763
|
+
# result = client.discover_connection_profile request
|
764
|
+
#
|
765
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::DiscoverConnectionProfileResponse.
|
766
|
+
# p result
|
767
|
+
#
|
641
768
|
def discover_connection_profile request, options = nil
|
642
769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
643
770
|
|
@@ -655,9 +782,11 @@ module Google
|
|
655
782
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
656
783
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
657
784
|
|
658
|
-
header_params = {
|
659
|
-
|
660
|
-
|
785
|
+
header_params = {}
|
786
|
+
if request.parent
|
787
|
+
header_params["parent"] = request.parent
|
788
|
+
end
|
789
|
+
|
661
790
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
662
791
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
663
792
|
|
@@ -720,6 +849,27 @@ module Google
|
|
720
849
|
#
|
721
850
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
722
851
|
#
|
852
|
+
# @example Basic example
|
853
|
+
# require "google/cloud/datastream/v1alpha1"
|
854
|
+
#
|
855
|
+
# # Create a client object. The client can be reused for multiple calls.
|
856
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
857
|
+
#
|
858
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
859
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListStreamsRequest.new
|
860
|
+
#
|
861
|
+
# # Call the list_streams method.
|
862
|
+
# result = client.list_streams request
|
863
|
+
#
|
864
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
865
|
+
# # iterate over all elements by calling #each, and the enumerable
|
866
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
867
|
+
# # methods are also available for managing paging directly.
|
868
|
+
# result.each do |response|
|
869
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::Stream.
|
870
|
+
# p response
|
871
|
+
# end
|
872
|
+
#
|
723
873
|
def list_streams request, options = nil
|
724
874
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
725
875
|
|
@@ -737,9 +887,11 @@ module Google
|
|
737
887
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
738
888
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
739
889
|
|
740
|
-
header_params = {
|
741
|
-
|
742
|
-
|
890
|
+
header_params = {}
|
891
|
+
if request.parent
|
892
|
+
header_params["parent"] = request.parent
|
893
|
+
end
|
894
|
+
|
743
895
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
744
896
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
745
897
|
|
@@ -789,6 +941,21 @@ module Google
|
|
789
941
|
#
|
790
942
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
791
943
|
#
|
944
|
+
# @example Basic example
|
945
|
+
# require "google/cloud/datastream/v1alpha1"
|
946
|
+
#
|
947
|
+
# # Create a client object. The client can be reused for multiple calls.
|
948
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
949
|
+
#
|
950
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
951
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetStreamRequest.new
|
952
|
+
#
|
953
|
+
# # Call the get_stream method.
|
954
|
+
# result = client.get_stream request
|
955
|
+
#
|
956
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::Stream.
|
957
|
+
# p result
|
958
|
+
#
|
792
959
|
def get_stream request, options = nil
|
793
960
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
794
961
|
|
@@ -806,9 +973,11 @@ module Google
|
|
806
973
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
807
974
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
808
975
|
|
809
|
-
header_params = {
|
810
|
-
|
811
|
-
|
976
|
+
header_params = {}
|
977
|
+
if request.name
|
978
|
+
header_params["name"] = request.name
|
979
|
+
end
|
980
|
+
|
812
981
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
813
982
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
814
983
|
|
@@ -880,6 +1049,28 @@ module Google
|
|
880
1049
|
#
|
881
1050
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
882
1051
|
#
|
1052
|
+
# @example Basic example
|
1053
|
+
# require "google/cloud/datastream/v1alpha1"
|
1054
|
+
#
|
1055
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1056
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1057
|
+
#
|
1058
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1059
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreateStreamRequest.new
|
1060
|
+
#
|
1061
|
+
# # Call the create_stream method.
|
1062
|
+
# result = client.create_stream request
|
1063
|
+
#
|
1064
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1065
|
+
# # object to check the status of an operation, cancel it, or wait
|
1066
|
+
# # for results. Here is how to block until completion:
|
1067
|
+
# result.wait_until_done! timeout: 60
|
1068
|
+
# if result.response?
|
1069
|
+
# p result.response
|
1070
|
+
# else
|
1071
|
+
# puts "Error!"
|
1072
|
+
# end
|
1073
|
+
#
|
883
1074
|
def create_stream request, options = nil
|
884
1075
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
885
1076
|
|
@@ -897,9 +1088,11 @@ module Google
|
|
897
1088
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
898
1089
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
899
1090
|
|
900
|
-
header_params = {
|
901
|
-
|
902
|
-
|
1091
|
+
header_params = {}
|
1092
|
+
if request.parent
|
1093
|
+
header_params["parent"] = request.parent
|
1094
|
+
end
|
1095
|
+
|
903
1096
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
904
1097
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
905
1098
|
|
@@ -974,6 +1167,28 @@ module Google
|
|
974
1167
|
#
|
975
1168
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
976
1169
|
#
|
1170
|
+
# @example Basic example
|
1171
|
+
# require "google/cloud/datastream/v1alpha1"
|
1172
|
+
#
|
1173
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1174
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1175
|
+
#
|
1176
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1177
|
+
# request = Google::Cloud::Datastream::V1alpha1::UpdateStreamRequest.new
|
1178
|
+
#
|
1179
|
+
# # Call the update_stream method.
|
1180
|
+
# result = client.update_stream request
|
1181
|
+
#
|
1182
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1183
|
+
# # object to check the status of an operation, cancel it, or wait
|
1184
|
+
# # for results. Here is how to block until completion:
|
1185
|
+
# result.wait_until_done! timeout: 60
|
1186
|
+
# if result.response?
|
1187
|
+
# p result.response
|
1188
|
+
# else
|
1189
|
+
# puts "Error!"
|
1190
|
+
# end
|
1191
|
+
#
|
977
1192
|
def update_stream request, options = nil
|
978
1193
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
979
1194
|
|
@@ -991,9 +1206,11 @@ module Google
|
|
991
1206
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
992
1207
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
993
1208
|
|
994
|
-
header_params = {
|
995
|
-
|
996
|
-
|
1209
|
+
header_params = {}
|
1210
|
+
if request.stream&.name
|
1211
|
+
header_params["stream.name"] = request.stream.name
|
1212
|
+
end
|
1213
|
+
|
997
1214
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
998
1215
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
999
1216
|
|
@@ -1057,6 +1274,28 @@ module Google
|
|
1057
1274
|
#
|
1058
1275
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1059
1276
|
#
|
1277
|
+
# @example Basic example
|
1278
|
+
# require "google/cloud/datastream/v1alpha1"
|
1279
|
+
#
|
1280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1281
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1282
|
+
#
|
1283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1284
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeleteStreamRequest.new
|
1285
|
+
#
|
1286
|
+
# # Call the delete_stream method.
|
1287
|
+
# result = client.delete_stream request
|
1288
|
+
#
|
1289
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1290
|
+
# # object to check the status of an operation, cancel it, or wait
|
1291
|
+
# # for results. Here is how to block until completion:
|
1292
|
+
# result.wait_until_done! timeout: 60
|
1293
|
+
# if result.response?
|
1294
|
+
# p result.response
|
1295
|
+
# else
|
1296
|
+
# puts "Error!"
|
1297
|
+
# end
|
1298
|
+
#
|
1060
1299
|
def delete_stream request, options = nil
|
1061
1300
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1062
1301
|
|
@@ -1074,9 +1313,11 @@ module Google
|
|
1074
1313
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1075
1314
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1076
1315
|
|
1077
|
-
header_params = {
|
1078
|
-
|
1079
|
-
|
1316
|
+
header_params = {}
|
1317
|
+
if request.name
|
1318
|
+
header_params["name"] = request.name
|
1319
|
+
end
|
1320
|
+
|
1080
1321
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1081
1322
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1082
1323
|
|
@@ -1126,6 +1367,28 @@ module Google
|
|
1126
1367
|
#
|
1127
1368
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1128
1369
|
#
|
1370
|
+
# @example Basic example
|
1371
|
+
# require "google/cloud/datastream/v1alpha1"
|
1372
|
+
#
|
1373
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1374
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1375
|
+
#
|
1376
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1377
|
+
# request = Google::Cloud::Datastream::V1alpha1::FetchErrorsRequest.new
|
1378
|
+
#
|
1379
|
+
# # Call the fetch_errors method.
|
1380
|
+
# result = client.fetch_errors request
|
1381
|
+
#
|
1382
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1383
|
+
# # object to check the status of an operation, cancel it, or wait
|
1384
|
+
# # for results. Here is how to block until completion:
|
1385
|
+
# result.wait_until_done! timeout: 60
|
1386
|
+
# if result.response?
|
1387
|
+
# p result.response
|
1388
|
+
# else
|
1389
|
+
# puts "Error!"
|
1390
|
+
# end
|
1391
|
+
#
|
1129
1392
|
def fetch_errors request, options = nil
|
1130
1393
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1131
1394
|
|
@@ -1143,9 +1406,11 @@ module Google
|
|
1143
1406
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1144
1407
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1145
1408
|
|
1146
|
-
header_params = {
|
1147
|
-
|
1148
|
-
|
1409
|
+
header_params = {}
|
1410
|
+
if request.stream
|
1411
|
+
header_params["stream"] = request.stream
|
1412
|
+
end
|
1413
|
+
|
1149
1414
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1150
1415
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1151
1416
|
|
@@ -1203,6 +1468,21 @@ module Google
|
|
1203
1468
|
#
|
1204
1469
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1205
1470
|
#
|
1471
|
+
# @example Basic example
|
1472
|
+
# require "google/cloud/datastream/v1alpha1"
|
1473
|
+
#
|
1474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1475
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1476
|
+
#
|
1477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1478
|
+
# request = Google::Cloud::Datastream::V1alpha1::FetchStaticIpsRequest.new
|
1479
|
+
#
|
1480
|
+
# # Call the fetch_static_ips method.
|
1481
|
+
# result = client.fetch_static_ips request
|
1482
|
+
#
|
1483
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::FetchStaticIpsResponse.
|
1484
|
+
# p result
|
1485
|
+
#
|
1206
1486
|
def fetch_static_ips request, options = nil
|
1207
1487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1208
1488
|
|
@@ -1220,9 +1500,11 @@ module Google
|
|
1220
1500
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1221
1501
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1222
1502
|
|
1223
|
-
header_params = {
|
1224
|
-
|
1225
|
-
|
1503
|
+
header_params = {}
|
1504
|
+
if request.name
|
1505
|
+
header_params["name"] = request.name
|
1506
|
+
end
|
1507
|
+
|
1226
1508
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1227
1509
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1228
1510
|
|
@@ -1289,6 +1571,28 @@ module Google
|
|
1289
1571
|
#
|
1290
1572
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1291
1573
|
#
|
1574
|
+
# @example Basic example
|
1575
|
+
# require "google/cloud/datastream/v1alpha1"
|
1576
|
+
#
|
1577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1578
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1579
|
+
#
|
1580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1581
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreatePrivateConnectionRequest.new
|
1582
|
+
#
|
1583
|
+
# # Call the create_private_connection method.
|
1584
|
+
# result = client.create_private_connection request
|
1585
|
+
#
|
1586
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1587
|
+
# # object to check the status of an operation, cancel it, or wait
|
1588
|
+
# # for results. Here is how to block until completion:
|
1589
|
+
# result.wait_until_done! timeout: 60
|
1590
|
+
# if result.response?
|
1591
|
+
# p result.response
|
1592
|
+
# else
|
1593
|
+
# puts "Error!"
|
1594
|
+
# end
|
1595
|
+
#
|
1292
1596
|
def create_private_connection request, options = nil
|
1293
1597
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1294
1598
|
|
@@ -1306,9 +1610,11 @@ module Google
|
|
1306
1610
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1307
1611
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1308
1612
|
|
1309
|
-
header_params = {
|
1310
|
-
|
1311
|
-
|
1613
|
+
header_params = {}
|
1614
|
+
if request.parent
|
1615
|
+
header_params["parent"] = request.parent
|
1616
|
+
end
|
1617
|
+
|
1312
1618
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1313
1619
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1314
1620
|
|
@@ -1358,6 +1664,21 @@ module Google
|
|
1358
1664
|
#
|
1359
1665
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1360
1666
|
#
|
1667
|
+
# @example Basic example
|
1668
|
+
# require "google/cloud/datastream/v1alpha1"
|
1669
|
+
#
|
1670
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1671
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1672
|
+
#
|
1673
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1674
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetPrivateConnectionRequest.new
|
1675
|
+
#
|
1676
|
+
# # Call the get_private_connection method.
|
1677
|
+
# result = client.get_private_connection request
|
1678
|
+
#
|
1679
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::PrivateConnection.
|
1680
|
+
# p result
|
1681
|
+
#
|
1361
1682
|
def get_private_connection request, options = nil
|
1362
1683
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1363
1684
|
|
@@ -1375,9 +1696,11 @@ module Google
|
|
1375
1696
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1376
1697
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1377
1698
|
|
1378
|
-
header_params = {
|
1379
|
-
|
1380
|
-
|
1699
|
+
header_params = {}
|
1700
|
+
if request.name
|
1701
|
+
header_params["name"] = request.name
|
1702
|
+
end
|
1703
|
+
|
1381
1704
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1382
1705
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1383
1706
|
|
@@ -1443,6 +1766,27 @@ module Google
|
|
1443
1766
|
#
|
1444
1767
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1445
1768
|
#
|
1769
|
+
# @example Basic example
|
1770
|
+
# require "google/cloud/datastream/v1alpha1"
|
1771
|
+
#
|
1772
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1773
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1774
|
+
#
|
1775
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1776
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListPrivateConnectionsRequest.new
|
1777
|
+
#
|
1778
|
+
# # Call the list_private_connections method.
|
1779
|
+
# result = client.list_private_connections request
|
1780
|
+
#
|
1781
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1782
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1783
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1784
|
+
# # methods are also available for managing paging directly.
|
1785
|
+
# result.each do |response|
|
1786
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::PrivateConnection.
|
1787
|
+
# p response
|
1788
|
+
# end
|
1789
|
+
#
|
1446
1790
|
def list_private_connections request, options = nil
|
1447
1791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1448
1792
|
|
@@ -1460,9 +1804,11 @@ module Google
|
|
1460
1804
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1461
1805
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1462
1806
|
|
1463
|
-
header_params = {
|
1464
|
-
|
1465
|
-
|
1807
|
+
header_params = {}
|
1808
|
+
if request.parent
|
1809
|
+
header_params["parent"] = request.parent
|
1810
|
+
end
|
1811
|
+
|
1466
1812
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1467
1813
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1468
1814
|
|
@@ -1529,6 +1875,28 @@ module Google
|
|
1529
1875
|
#
|
1530
1876
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1531
1877
|
#
|
1878
|
+
# @example Basic example
|
1879
|
+
# require "google/cloud/datastream/v1alpha1"
|
1880
|
+
#
|
1881
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1882
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1883
|
+
#
|
1884
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1885
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeletePrivateConnectionRequest.new
|
1886
|
+
#
|
1887
|
+
# # Call the delete_private_connection method.
|
1888
|
+
# result = client.delete_private_connection request
|
1889
|
+
#
|
1890
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1891
|
+
# # object to check the status of an operation, cancel it, or wait
|
1892
|
+
# # for results. Here is how to block until completion:
|
1893
|
+
# result.wait_until_done! timeout: 60
|
1894
|
+
# if result.response?
|
1895
|
+
# p result.response
|
1896
|
+
# else
|
1897
|
+
# puts "Error!"
|
1898
|
+
# end
|
1899
|
+
#
|
1532
1900
|
def delete_private_connection request, options = nil
|
1533
1901
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1534
1902
|
|
@@ -1546,9 +1914,11 @@ module Google
|
|
1546
1914
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1547
1915
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1548
1916
|
|
1549
|
-
header_params = {
|
1550
|
-
|
1551
|
-
|
1917
|
+
header_params = {}
|
1918
|
+
if request.name
|
1919
|
+
header_params["name"] = request.name
|
1920
|
+
end
|
1921
|
+
|
1552
1922
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1553
1923
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1554
1924
|
|
@@ -1617,6 +1987,28 @@ module Google
|
|
1617
1987
|
#
|
1618
1988
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1619
1989
|
#
|
1990
|
+
# @example Basic example
|
1991
|
+
# require "google/cloud/datastream/v1alpha1"
|
1992
|
+
#
|
1993
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1994
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
1995
|
+
#
|
1996
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1997
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreateRouteRequest.new
|
1998
|
+
#
|
1999
|
+
# # Call the create_route method.
|
2000
|
+
# result = client.create_route request
|
2001
|
+
#
|
2002
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2003
|
+
# # object to check the status of an operation, cancel it, or wait
|
2004
|
+
# # for results. Here is how to block until completion:
|
2005
|
+
# result.wait_until_done! timeout: 60
|
2006
|
+
# if result.response?
|
2007
|
+
# p result.response
|
2008
|
+
# else
|
2009
|
+
# puts "Error!"
|
2010
|
+
# end
|
2011
|
+
#
|
1620
2012
|
def create_route request, options = nil
|
1621
2013
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1622
2014
|
|
@@ -1634,9 +2026,11 @@ module Google
|
|
1634
2026
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1635
2027
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1636
2028
|
|
1637
|
-
header_params = {
|
1638
|
-
|
1639
|
-
|
2029
|
+
header_params = {}
|
2030
|
+
if request.parent
|
2031
|
+
header_params["parent"] = request.parent
|
2032
|
+
end
|
2033
|
+
|
1640
2034
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1641
2035
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1642
2036
|
|
@@ -1686,6 +2080,21 @@ module Google
|
|
1686
2080
|
#
|
1687
2081
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1688
2082
|
#
|
2083
|
+
# @example Basic example
|
2084
|
+
# require "google/cloud/datastream/v1alpha1"
|
2085
|
+
#
|
2086
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2087
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
2088
|
+
#
|
2089
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2090
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetRouteRequest.new
|
2091
|
+
#
|
2092
|
+
# # Call the get_route method.
|
2093
|
+
# result = client.get_route request
|
2094
|
+
#
|
2095
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::Route.
|
2096
|
+
# p result
|
2097
|
+
#
|
1689
2098
|
def get_route request, options = nil
|
1690
2099
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1691
2100
|
|
@@ -1703,9 +2112,11 @@ module Google
|
|
1703
2112
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1704
2113
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1705
2114
|
|
1706
|
-
header_params = {
|
1707
|
-
|
1708
|
-
|
2115
|
+
header_params = {}
|
2116
|
+
if request.name
|
2117
|
+
header_params["name"] = request.name
|
2118
|
+
end
|
2119
|
+
|
1709
2120
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1710
2121
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1711
2122
|
|
@@ -1771,6 +2182,27 @@ module Google
|
|
1771
2182
|
#
|
1772
2183
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1773
2184
|
#
|
2185
|
+
# @example Basic example
|
2186
|
+
# require "google/cloud/datastream/v1alpha1"
|
2187
|
+
#
|
2188
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2189
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
2190
|
+
#
|
2191
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2192
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListRoutesRequest.new
|
2193
|
+
#
|
2194
|
+
# # Call the list_routes method.
|
2195
|
+
# result = client.list_routes request
|
2196
|
+
#
|
2197
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2198
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2199
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2200
|
+
# # methods are also available for managing paging directly.
|
2201
|
+
# result.each do |response|
|
2202
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::Route.
|
2203
|
+
# p response
|
2204
|
+
# end
|
2205
|
+
#
|
1774
2206
|
def list_routes request, options = nil
|
1775
2207
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1776
2208
|
|
@@ -1788,9 +2220,11 @@ module Google
|
|
1788
2220
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1789
2221
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1790
2222
|
|
1791
|
-
header_params = {
|
1792
|
-
|
1793
|
-
|
2223
|
+
header_params = {}
|
2224
|
+
if request.parent
|
2225
|
+
header_params["parent"] = request.parent
|
2226
|
+
end
|
2227
|
+
|
1794
2228
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1795
2229
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1796
2230
|
|
@@ -1854,6 +2288,28 @@ module Google
|
|
1854
2288
|
#
|
1855
2289
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1856
2290
|
#
|
2291
|
+
# @example Basic example
|
2292
|
+
# require "google/cloud/datastream/v1alpha1"
|
2293
|
+
#
|
2294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2295
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
|
2296
|
+
#
|
2297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2298
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeleteRouteRequest.new
|
2299
|
+
#
|
2300
|
+
# # Call the delete_route method.
|
2301
|
+
# result = client.delete_route request
|
2302
|
+
#
|
2303
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2304
|
+
# # object to check the status of an operation, cancel it, or wait
|
2305
|
+
# # for results. Here is how to block until completion:
|
2306
|
+
# result.wait_until_done! timeout: 60
|
2307
|
+
# if result.response?
|
2308
|
+
# p result.response
|
2309
|
+
# else
|
2310
|
+
# puts "Error!"
|
2311
|
+
# end
|
2312
|
+
#
|
1857
2313
|
def delete_route request, options = nil
|
1858
2314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1859
2315
|
|
@@ -1871,9 +2327,11 @@ module Google
|
|
1871
2327
|
gapic_version: ::Google::Cloud::Datastream::V1alpha1::VERSION
|
1872
2328
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1873
2329
|
|
1874
|
-
header_params = {
|
1875
|
-
|
1876
|
-
|
2330
|
+
header_params = {}
|
2331
|
+
if request.name
|
2332
|
+
header_params["name"] = request.name
|
2333
|
+
end
|
2334
|
+
|
1877
2335
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1878
2336
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1879
2337
|
|
@@ -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::Datastream::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::Datastream::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::Datastream::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::Datastream::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,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datastream/v1alpha1/datastream.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'
|
@@ -11,6 +9,8 @@ require 'google/cloud/datastream/v1alpha1/datastream_resources_pb'
|
|
11
9
|
require 'google/longrunning/operations_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
13
11
|
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/datastream/v1alpha1/datastream.proto", :syntax => :proto3) do
|
16
16
|
add_message "google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datastream/v1alpha1/datastream_resources.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/duration_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/datastream/v1alpha1/datastream_resources.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.datastream.v1alpha1.OracleProfile" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastream-v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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
|