google-cloud-datastream-v1alpha1 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/datastream/v1alpha1/datastream/client.rb +16 -5
- data/lib/google/cloud/datastream/v1alpha1/datastream/operations.rb +15 -4
- data/lib/google/cloud/datastream/v1alpha1/datastream/rest/client.rb +435 -4
- data/lib/google/cloud/datastream/v1alpha1/datastream/rest/operations.rb +84 -7
- data/lib/google/cloud/datastream/v1alpha1/datastream/rest/service_stub.rb +21 -21
- data/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb +27 -162
- data/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb +26 -251
- data/lib/google/cloud/datastream/v1alpha1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
@@ -144,7 +144,7 @@ module Google
|
|
144
144
|
credentials = @config.credentials
|
145
145
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
146
146
|
# but only if the default endpoint does not have a region prefix.
|
147
|
-
enable_self_signed_jwt = @config.endpoint ==
|
147
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
148
148
|
!@config.endpoint.split(".").first.include?("-")
|
149
149
|
credentials ||= Credentials.default scope: @config.scope,
|
150
150
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -215,6 +215,26 @@ module Google
|
|
215
215
|
# @return [::Google::Cloud::Datastream::V1alpha1::ListConnectionProfilesResponse]
|
216
216
|
#
|
217
217
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
218
|
+
#
|
219
|
+
# @example Basic example
|
220
|
+
# require "google/cloud/datastream/v1alpha1"
|
221
|
+
#
|
222
|
+
# # Create a client object. The client can be reused for multiple calls.
|
223
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
224
|
+
#
|
225
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
226
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListConnectionProfilesRequest.new
|
227
|
+
#
|
228
|
+
# # Call the list_connection_profiles method.
|
229
|
+
# result = client.list_connection_profiles request
|
230
|
+
#
|
231
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
232
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
233
|
+
# result.each do |item|
|
234
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::ConnectionProfile.
|
235
|
+
# p item
|
236
|
+
# end
|
237
|
+
#
|
218
238
|
def list_connection_profiles request, options = nil
|
219
239
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
240
|
|
@@ -277,6 +297,22 @@ module Google
|
|
277
297
|
# @return [::Google::Cloud::Datastream::V1alpha1::ConnectionProfile]
|
278
298
|
#
|
279
299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/cloud/datastream/v1alpha1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetConnectionProfileRequest.new
|
309
|
+
#
|
310
|
+
# # Call the get_connection_profile method.
|
311
|
+
# result = client.get_connection_profile request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::ConnectionProfile.
|
314
|
+
# p result
|
315
|
+
#
|
280
316
|
def get_connection_profile request, options = nil
|
281
317
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
282
318
|
|
@@ -357,6 +393,29 @@ module Google
|
|
357
393
|
# @return [::Gapic::Operation]
|
358
394
|
#
|
359
395
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
396
|
+
#
|
397
|
+
# @example Basic example
|
398
|
+
# require "google/cloud/datastream/v1alpha1"
|
399
|
+
#
|
400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
401
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
402
|
+
#
|
403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
404
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreateConnectionProfileRequest.new
|
405
|
+
#
|
406
|
+
# # Call the create_connection_profile method.
|
407
|
+
# result = client.create_connection_profile request
|
408
|
+
#
|
409
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
410
|
+
# # check the status of an operation, cancel it, or wait for results.
|
411
|
+
# # Here is how to wait for a response.
|
412
|
+
# result.wait_until_done! timeout: 60
|
413
|
+
# if result.response?
|
414
|
+
# p result.response
|
415
|
+
# else
|
416
|
+
# puts "No response received."
|
417
|
+
# end
|
418
|
+
#
|
360
419
|
def create_connection_profile request, options = nil
|
361
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
362
421
|
|
@@ -440,6 +499,29 @@ module Google
|
|
440
499
|
# @return [::Gapic::Operation]
|
441
500
|
#
|
442
501
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
502
|
+
#
|
503
|
+
# @example Basic example
|
504
|
+
# require "google/cloud/datastream/v1alpha1"
|
505
|
+
#
|
506
|
+
# # Create a client object. The client can be reused for multiple calls.
|
507
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
508
|
+
#
|
509
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
510
|
+
# request = Google::Cloud::Datastream::V1alpha1::UpdateConnectionProfileRequest.new
|
511
|
+
#
|
512
|
+
# # Call the update_connection_profile method.
|
513
|
+
# result = client.update_connection_profile request
|
514
|
+
#
|
515
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
516
|
+
# # check the status of an operation, cancel it, or wait for results.
|
517
|
+
# # Here is how to wait for a response.
|
518
|
+
# result.wait_until_done! timeout: 60
|
519
|
+
# if result.response?
|
520
|
+
# p result.response
|
521
|
+
# else
|
522
|
+
# puts "No response received."
|
523
|
+
# end
|
524
|
+
#
|
443
525
|
def update_connection_profile request, options = nil
|
444
526
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
445
527
|
|
@@ -517,6 +599,29 @@ module Google
|
|
517
599
|
# @return [::Gapic::Operation]
|
518
600
|
#
|
519
601
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
602
|
+
#
|
603
|
+
# @example Basic example
|
604
|
+
# require "google/cloud/datastream/v1alpha1"
|
605
|
+
#
|
606
|
+
# # Create a client object. The client can be reused for multiple calls.
|
607
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
608
|
+
#
|
609
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
610
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeleteConnectionProfileRequest.new
|
611
|
+
#
|
612
|
+
# # Call the delete_connection_profile method.
|
613
|
+
# result = client.delete_connection_profile request
|
614
|
+
#
|
615
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
616
|
+
# # check the status of an operation, cancel it, or wait for results.
|
617
|
+
# # Here is how to wait for a response.
|
618
|
+
# result.wait_until_done! timeout: 60
|
619
|
+
# if result.response?
|
620
|
+
# p result.response
|
621
|
+
# else
|
622
|
+
# puts "No response received."
|
623
|
+
# end
|
624
|
+
#
|
520
625
|
def delete_connection_profile request, options = nil
|
521
626
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
522
627
|
|
@@ -597,6 +702,22 @@ module Google
|
|
597
702
|
# @return [::Google::Cloud::Datastream::V1alpha1::DiscoverConnectionProfileResponse]
|
598
703
|
#
|
599
704
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
705
|
+
#
|
706
|
+
# @example Basic example
|
707
|
+
# require "google/cloud/datastream/v1alpha1"
|
708
|
+
#
|
709
|
+
# # Create a client object. The client can be reused for multiple calls.
|
710
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
711
|
+
#
|
712
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
713
|
+
# request = Google::Cloud::Datastream::V1alpha1::DiscoverConnectionProfileRequest.new
|
714
|
+
#
|
715
|
+
# # Call the discover_connection_profile method.
|
716
|
+
# result = client.discover_connection_profile request
|
717
|
+
#
|
718
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::DiscoverConnectionProfileResponse.
|
719
|
+
# p result
|
720
|
+
#
|
600
721
|
def discover_connection_profile request, options = nil
|
601
722
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
602
723
|
|
@@ -673,6 +794,26 @@ module Google
|
|
673
794
|
# @return [::Google::Cloud::Datastream::V1alpha1::ListStreamsResponse]
|
674
795
|
#
|
675
796
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
797
|
+
#
|
798
|
+
# @example Basic example
|
799
|
+
# require "google/cloud/datastream/v1alpha1"
|
800
|
+
#
|
801
|
+
# # Create a client object. The client can be reused for multiple calls.
|
802
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
803
|
+
#
|
804
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
805
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListStreamsRequest.new
|
806
|
+
#
|
807
|
+
# # Call the list_streams method.
|
808
|
+
# result = client.list_streams request
|
809
|
+
#
|
810
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
811
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
812
|
+
# result.each do |item|
|
813
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::Stream.
|
814
|
+
# p item
|
815
|
+
# end
|
816
|
+
#
|
676
817
|
def list_streams request, options = nil
|
677
818
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
678
819
|
|
@@ -735,6 +876,22 @@ module Google
|
|
735
876
|
# @return [::Google::Cloud::Datastream::V1alpha1::Stream]
|
736
877
|
#
|
737
878
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
879
|
+
#
|
880
|
+
# @example Basic example
|
881
|
+
# require "google/cloud/datastream/v1alpha1"
|
882
|
+
#
|
883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
884
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
885
|
+
#
|
886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
887
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetStreamRequest.new
|
888
|
+
#
|
889
|
+
# # Call the get_stream method.
|
890
|
+
# result = client.get_stream request
|
891
|
+
#
|
892
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::Stream.
|
893
|
+
# p result
|
894
|
+
#
|
738
895
|
def get_stream request, options = nil
|
739
896
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
740
897
|
|
@@ -820,6 +977,29 @@ module Google
|
|
820
977
|
# @return [::Gapic::Operation]
|
821
978
|
#
|
822
979
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
980
|
+
#
|
981
|
+
# @example Basic example
|
982
|
+
# require "google/cloud/datastream/v1alpha1"
|
983
|
+
#
|
984
|
+
# # Create a client object. The client can be reused for multiple calls.
|
985
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
986
|
+
#
|
987
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
988
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreateStreamRequest.new
|
989
|
+
#
|
990
|
+
# # Call the create_stream method.
|
991
|
+
# result = client.create_stream request
|
992
|
+
#
|
993
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
994
|
+
# # check the status of an operation, cancel it, or wait for results.
|
995
|
+
# # Here is how to wait for a response.
|
996
|
+
# result.wait_until_done! timeout: 60
|
997
|
+
# if result.response?
|
998
|
+
# p result.response
|
999
|
+
# else
|
1000
|
+
# puts "No response received."
|
1001
|
+
# end
|
1002
|
+
#
|
823
1003
|
def create_stream request, options = nil
|
824
1004
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
825
1005
|
|
@@ -908,6 +1088,29 @@ module Google
|
|
908
1088
|
# @return [::Gapic::Operation]
|
909
1089
|
#
|
910
1090
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1091
|
+
#
|
1092
|
+
# @example Basic example
|
1093
|
+
# require "google/cloud/datastream/v1alpha1"
|
1094
|
+
#
|
1095
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1096
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1097
|
+
#
|
1098
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1099
|
+
# request = Google::Cloud::Datastream::V1alpha1::UpdateStreamRequest.new
|
1100
|
+
#
|
1101
|
+
# # Call the update_stream method.
|
1102
|
+
# result = client.update_stream request
|
1103
|
+
#
|
1104
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1105
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1106
|
+
# # Here is how to wait for a response.
|
1107
|
+
# result.wait_until_done! timeout: 60
|
1108
|
+
# if result.response?
|
1109
|
+
# p result.response
|
1110
|
+
# else
|
1111
|
+
# puts "No response received."
|
1112
|
+
# end
|
1113
|
+
#
|
911
1114
|
def update_stream request, options = nil
|
912
1115
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
913
1116
|
|
@@ -985,6 +1188,29 @@ module Google
|
|
985
1188
|
# @return [::Gapic::Operation]
|
986
1189
|
#
|
987
1190
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1191
|
+
#
|
1192
|
+
# @example Basic example
|
1193
|
+
# require "google/cloud/datastream/v1alpha1"
|
1194
|
+
#
|
1195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1196
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1197
|
+
#
|
1198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1199
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeleteStreamRequest.new
|
1200
|
+
#
|
1201
|
+
# # Call the delete_stream method.
|
1202
|
+
# result = client.delete_stream request
|
1203
|
+
#
|
1204
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1205
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1206
|
+
# # Here is how to wait for a response.
|
1207
|
+
# result.wait_until_done! timeout: 60
|
1208
|
+
# if result.response?
|
1209
|
+
# p result.response
|
1210
|
+
# else
|
1211
|
+
# puts "No response received."
|
1212
|
+
# end
|
1213
|
+
#
|
988
1214
|
def delete_stream request, options = nil
|
989
1215
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
990
1216
|
|
@@ -1048,6 +1274,29 @@ module Google
|
|
1048
1274
|
# @return [::Gapic::Operation]
|
1049
1275
|
#
|
1050
1276
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
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::Rest::Client.new
|
1283
|
+
#
|
1284
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1285
|
+
# request = Google::Cloud::Datastream::V1alpha1::FetchErrorsRequest.new
|
1286
|
+
#
|
1287
|
+
# # Call the fetch_errors method.
|
1288
|
+
# result = client.fetch_errors request
|
1289
|
+
#
|
1290
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1291
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1292
|
+
# # Here is how to wait for a response.
|
1293
|
+
# result.wait_until_done! timeout: 60
|
1294
|
+
# if result.response?
|
1295
|
+
# p result.response
|
1296
|
+
# else
|
1297
|
+
# puts "No response received."
|
1298
|
+
# end
|
1299
|
+
#
|
1051
1300
|
def fetch_errors request, options = nil
|
1052
1301
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1053
1302
|
|
@@ -1119,6 +1368,22 @@ module Google
|
|
1119
1368
|
# @return [::Gapic::Rest::PagedEnumerable<::String>]
|
1120
1369
|
#
|
1121
1370
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1371
|
+
#
|
1372
|
+
# @example Basic example
|
1373
|
+
# require "google/cloud/datastream/v1alpha1"
|
1374
|
+
#
|
1375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1376
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1377
|
+
#
|
1378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1379
|
+
# request = Google::Cloud::Datastream::V1alpha1::FetchStaticIpsRequest.new
|
1380
|
+
#
|
1381
|
+
# # Call the fetch_static_ips method.
|
1382
|
+
# result = client.fetch_static_ips request
|
1383
|
+
#
|
1384
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::FetchStaticIpsResponse.
|
1385
|
+
# p result
|
1386
|
+
#
|
1122
1387
|
def fetch_static_ips request, options = nil
|
1123
1388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1124
1389
|
|
@@ -1200,6 +1465,29 @@ module Google
|
|
1200
1465
|
# @return [::Gapic::Operation]
|
1201
1466
|
#
|
1202
1467
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1468
|
+
#
|
1469
|
+
# @example Basic example
|
1470
|
+
# require "google/cloud/datastream/v1alpha1"
|
1471
|
+
#
|
1472
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1473
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1474
|
+
#
|
1475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1476
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreatePrivateConnectionRequest.new
|
1477
|
+
#
|
1478
|
+
# # Call the create_private_connection method.
|
1479
|
+
# result = client.create_private_connection request
|
1480
|
+
#
|
1481
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1482
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1483
|
+
# # Here is how to wait for a response.
|
1484
|
+
# result.wait_until_done! timeout: 60
|
1485
|
+
# if result.response?
|
1486
|
+
# p result.response
|
1487
|
+
# else
|
1488
|
+
# puts "No response received."
|
1489
|
+
# end
|
1490
|
+
#
|
1203
1491
|
def create_private_connection request, options = nil
|
1204
1492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1205
1493
|
|
@@ -1263,6 +1551,22 @@ module Google
|
|
1263
1551
|
# @return [::Google::Cloud::Datastream::V1alpha1::PrivateConnection]
|
1264
1552
|
#
|
1265
1553
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1554
|
+
#
|
1555
|
+
# @example Basic example
|
1556
|
+
# require "google/cloud/datastream/v1alpha1"
|
1557
|
+
#
|
1558
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1559
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1560
|
+
#
|
1561
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1562
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetPrivateConnectionRequest.new
|
1563
|
+
#
|
1564
|
+
# # Call the get_private_connection method.
|
1565
|
+
# result = client.get_private_connection request
|
1566
|
+
#
|
1567
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::PrivateConnection.
|
1568
|
+
# p result
|
1569
|
+
#
|
1266
1570
|
def get_private_connection request, options = nil
|
1267
1571
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1268
1572
|
|
@@ -1342,6 +1646,26 @@ module Google
|
|
1342
1646
|
# @return [::Google::Cloud::Datastream::V1alpha1::ListPrivateConnectionsResponse]
|
1343
1647
|
#
|
1344
1648
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1649
|
+
#
|
1650
|
+
# @example Basic example
|
1651
|
+
# require "google/cloud/datastream/v1alpha1"
|
1652
|
+
#
|
1653
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1654
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1655
|
+
#
|
1656
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1657
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListPrivateConnectionsRequest.new
|
1658
|
+
#
|
1659
|
+
# # Call the list_private_connections method.
|
1660
|
+
# result = client.list_private_connections request
|
1661
|
+
#
|
1662
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1663
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1664
|
+
# result.each do |item|
|
1665
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::PrivateConnection.
|
1666
|
+
# p item
|
1667
|
+
# end
|
1668
|
+
#
|
1345
1669
|
def list_private_connections request, options = nil
|
1346
1670
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1347
1671
|
|
@@ -1421,6 +1745,29 @@ module Google
|
|
1421
1745
|
# @return [::Gapic::Operation]
|
1422
1746
|
#
|
1423
1747
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1748
|
+
#
|
1749
|
+
# @example Basic example
|
1750
|
+
# require "google/cloud/datastream/v1alpha1"
|
1751
|
+
#
|
1752
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1753
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1754
|
+
#
|
1755
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1756
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeletePrivateConnectionRequest.new
|
1757
|
+
#
|
1758
|
+
# # Call the delete_private_connection method.
|
1759
|
+
# result = client.delete_private_connection request
|
1760
|
+
#
|
1761
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1762
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1763
|
+
# # Here is how to wait for a response.
|
1764
|
+
# result.wait_until_done! timeout: 60
|
1765
|
+
# if result.response?
|
1766
|
+
# p result.response
|
1767
|
+
# else
|
1768
|
+
# puts "No response received."
|
1769
|
+
# end
|
1770
|
+
#
|
1424
1771
|
def delete_private_connection request, options = nil
|
1425
1772
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1426
1773
|
|
@@ -1503,6 +1850,29 @@ module Google
|
|
1503
1850
|
# @return [::Gapic::Operation]
|
1504
1851
|
#
|
1505
1852
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1853
|
+
#
|
1854
|
+
# @example Basic example
|
1855
|
+
# require "google/cloud/datastream/v1alpha1"
|
1856
|
+
#
|
1857
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1858
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1859
|
+
#
|
1860
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1861
|
+
# request = Google::Cloud::Datastream::V1alpha1::CreateRouteRequest.new
|
1862
|
+
#
|
1863
|
+
# # Call the create_route method.
|
1864
|
+
# result = client.create_route request
|
1865
|
+
#
|
1866
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1867
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1868
|
+
# # Here is how to wait for a response.
|
1869
|
+
# result.wait_until_done! timeout: 60
|
1870
|
+
# if result.response?
|
1871
|
+
# p result.response
|
1872
|
+
# else
|
1873
|
+
# puts "No response received."
|
1874
|
+
# end
|
1875
|
+
#
|
1506
1876
|
def create_route request, options = nil
|
1507
1877
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1508
1878
|
|
@@ -1566,6 +1936,22 @@ module Google
|
|
1566
1936
|
# @return [::Google::Cloud::Datastream::V1alpha1::Route]
|
1567
1937
|
#
|
1568
1938
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1939
|
+
#
|
1940
|
+
# @example Basic example
|
1941
|
+
# require "google/cloud/datastream/v1alpha1"
|
1942
|
+
#
|
1943
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1944
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
1945
|
+
#
|
1946
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1947
|
+
# request = Google::Cloud::Datastream::V1alpha1::GetRouteRequest.new
|
1948
|
+
#
|
1949
|
+
# # Call the get_route method.
|
1950
|
+
# result = client.get_route request
|
1951
|
+
#
|
1952
|
+
# # The returned object is of type Google::Cloud::Datastream::V1alpha1::Route.
|
1953
|
+
# p result
|
1954
|
+
#
|
1569
1955
|
def get_route request, options = nil
|
1570
1956
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1571
1957
|
|
@@ -1645,6 +2031,26 @@ module Google
|
|
1645
2031
|
# @return [::Google::Cloud::Datastream::V1alpha1::ListRoutesResponse]
|
1646
2032
|
#
|
1647
2033
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2034
|
+
#
|
2035
|
+
# @example Basic example
|
2036
|
+
# require "google/cloud/datastream/v1alpha1"
|
2037
|
+
#
|
2038
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2039
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
2040
|
+
#
|
2041
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2042
|
+
# request = Google::Cloud::Datastream::V1alpha1::ListRoutesRequest.new
|
2043
|
+
#
|
2044
|
+
# # Call the list_routes method.
|
2045
|
+
# result = client.list_routes request
|
2046
|
+
#
|
2047
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2048
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2049
|
+
# result.each do |item|
|
2050
|
+
# # Each element is of type ::Google::Cloud::Datastream::V1alpha1::Route.
|
2051
|
+
# p item
|
2052
|
+
# end
|
2053
|
+
#
|
1648
2054
|
def list_routes request, options = nil
|
1649
2055
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1650
2056
|
|
@@ -1721,6 +2127,29 @@ module Google
|
|
1721
2127
|
# @return [::Gapic::Operation]
|
1722
2128
|
#
|
1723
2129
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2130
|
+
#
|
2131
|
+
# @example Basic example
|
2132
|
+
# require "google/cloud/datastream/v1alpha1"
|
2133
|
+
#
|
2134
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2135
|
+
# client = Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
|
2136
|
+
#
|
2137
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2138
|
+
# request = Google::Cloud::Datastream::V1alpha1::DeleteRouteRequest.new
|
2139
|
+
#
|
2140
|
+
# # Call the delete_route method.
|
2141
|
+
# result = client.delete_route request
|
2142
|
+
#
|
2143
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2144
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2145
|
+
# # Here is how to wait for a response.
|
2146
|
+
# result.wait_until_done! timeout: 60
|
2147
|
+
# if result.response?
|
2148
|
+
# p result.response
|
2149
|
+
# else
|
2150
|
+
# puts "No response received."
|
2151
|
+
# end
|
2152
|
+
#
|
1724
2153
|
def delete_route request, options = nil
|
1725
2154
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1726
2155
|
|
@@ -1795,9 +2224,9 @@ module Google
|
|
1795
2224
|
# * (`String`) The path to a service account key file in JSON format
|
1796
2225
|
# * (`Hash`) A service account key as a Hash
|
1797
2226
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1798
|
-
# (see the [googleauth docs](https://
|
2227
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1799
2228
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1800
|
-
# (see the [signet docs](https://
|
2229
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1801
2230
|
# * (`nil`) indicating no credentials
|
1802
2231
|
# @return [::Object]
|
1803
2232
|
# @!attribute [rw] scope
|
@@ -1830,7 +2259,9 @@ module Google
|
|
1830
2259
|
class Configuration
|
1831
2260
|
extend ::Gapic::Config
|
1832
2261
|
|
1833
|
-
|
2262
|
+
DEFAULT_ENDPOINT = "datastream.googleapis.com"
|
2263
|
+
|
2264
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1834
2265
|
config_attr :credentials, nil do |value|
|
1835
2266
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1836
2267
|
allowed.any? { |klass| klass === value }
|