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