google-cloud-datastream-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2865771d5703e977f575ae4680e005ede6fbf8a2705b91f2deb65c1d6e1ed7dd
4
- data.tar.gz: 97234c2963d0ddc29ad0865892c4cba6ccee33398e78b2a4f1c6dc63b3c43dbe
3
+ metadata.gz: 5b486bd127833c24901addb2a8b235b87264ec1b9d3e046c189b0528860805e0
4
+ data.tar.gz: 6838f42a6a34a628a24161ae9e2538f745dab358b0168d3c592d9fcd9f83a6f3
5
5
  SHA512:
6
- metadata.gz: dd48e429316bee0a5b7eeb779a6123c3af6b4134ba49c17a0eaaeb179bde85391246a6fb86d1f0dec640a4c41e06d6ca07e059925da02404c38f0844850932f8
7
- data.tar.gz: 42b32e45c05c072f7bf5078ddddeb9b42b08c5d2957b0ecda05cc594a89f556662c597d081b0adb740ca907fb09d5c63e04e8d0852cb4e6ff8bf7af5dccaa17b
6
+ metadata.gz: b699f6dfef75aeec2c3f3c2bb73da67111eb661d8ed043214415a89a4090a4009f74e32b85cdc095fe0552e2d9fd0650ae0b3f85609057b8592f2e1ccdf98dc1
7
+ data.tar.gz: 79c9a683bd57e7829a833e36204245efff762c928826944d63047af1fb4fdedf5e316d62d2d6420cc1b069952d2f8b470c1822cbe717d28ba59e74aa9127e383
@@ -183,7 +183,8 @@ module Google
183
183
  credentials: credentials,
184
184
  endpoint: @config.endpoint,
185
185
  channel_args: @config.channel_args,
186
- interceptors: @config.interceptors
186
+ interceptors: @config.interceptors,
187
+ channel_pool_config: @config.channel_pool
187
188
  )
188
189
  end
189
190
 
@@ -2857,6 +2858,14 @@ module Google
2857
2858
  end
2858
2859
  end
2859
2860
 
2861
+ ##
2862
+ # Configuration for the channel pool
2863
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2864
+ #
2865
+ def channel_pool
2866
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2867
+ end
2868
+
2860
2869
  ##
2861
2870
  # Configuration RPC class for the Datastream API.
2862
2871
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -244,6 +244,26 @@ module Google
244
244
  # @return [::Google::Cloud::Datastream::V1::ListConnectionProfilesResponse]
245
245
  #
246
246
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
247
+ #
248
+ # @example Basic example
249
+ # require "google/cloud/datastream/v1"
250
+ #
251
+ # # Create a client object. The client can be reused for multiple calls.
252
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
253
+ #
254
+ # # Create a request. To set request fields, pass in keyword arguments.
255
+ # request = Google::Cloud::Datastream::V1::ListConnectionProfilesRequest.new
256
+ #
257
+ # # Call the list_connection_profiles method.
258
+ # result = client.list_connection_profiles request
259
+ #
260
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
261
+ # # over elements, and API calls will be issued to fetch pages as needed.
262
+ # result.each do |item|
263
+ # # Each element is of type ::Google::Cloud::Datastream::V1::ConnectionProfile.
264
+ # p item
265
+ # end
266
+ #
247
267
  def list_connection_profiles request, options = nil
248
268
  raise ::ArgumentError, "request must be provided" if request.nil?
249
269
 
@@ -306,6 +326,22 @@ module Google
306
326
  # @return [::Google::Cloud::Datastream::V1::ConnectionProfile]
307
327
  #
308
328
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
329
+ #
330
+ # @example Basic example
331
+ # require "google/cloud/datastream/v1"
332
+ #
333
+ # # Create a client object. The client can be reused for multiple calls.
334
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
335
+ #
336
+ # # Create a request. To set request fields, pass in keyword arguments.
337
+ # request = Google::Cloud::Datastream::V1::GetConnectionProfileRequest.new
338
+ #
339
+ # # Call the get_connection_profile method.
340
+ # result = client.get_connection_profile request
341
+ #
342
+ # # The returned object is of type Google::Cloud::Datastream::V1::ConnectionProfile.
343
+ # p result
344
+ #
309
345
  def get_connection_profile request, options = nil
310
346
  raise ::ArgumentError, "request must be provided" if request.nil?
311
347
 
@@ -391,6 +427,29 @@ module Google
391
427
  # @return [::Gapic::Operation]
392
428
  #
393
429
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
430
+ #
431
+ # @example Basic example
432
+ # require "google/cloud/datastream/v1"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Cloud::Datastream::V1::CreateConnectionProfileRequest.new
439
+ #
440
+ # # Call the create_connection_profile method.
441
+ # result = client.create_connection_profile request
442
+ #
443
+ # # The returned object is of type Gapic::Operation. You can use it to
444
+ # # check the status of an operation, cancel it, or wait for results.
445
+ # # Here is how to wait for a response.
446
+ # result.wait_until_done! timeout: 60
447
+ # if result.response?
448
+ # p result.response
449
+ # else
450
+ # puts "No response received."
451
+ # end
452
+ #
394
453
  def create_connection_profile request, options = nil
395
454
  raise ::ArgumentError, "request must be provided" if request.nil?
396
455
 
@@ -479,6 +538,29 @@ module Google
479
538
  # @return [::Gapic::Operation]
480
539
  #
481
540
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
541
+ #
542
+ # @example Basic example
543
+ # require "google/cloud/datastream/v1"
544
+ #
545
+ # # Create a client object. The client can be reused for multiple calls.
546
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
547
+ #
548
+ # # Create a request. To set request fields, pass in keyword arguments.
549
+ # request = Google::Cloud::Datastream::V1::UpdateConnectionProfileRequest.new
550
+ #
551
+ # # Call the update_connection_profile method.
552
+ # result = client.update_connection_profile request
553
+ #
554
+ # # The returned object is of type Gapic::Operation. You can use it to
555
+ # # check the status of an operation, cancel it, or wait for results.
556
+ # # Here is how to wait for a response.
557
+ # result.wait_until_done! timeout: 60
558
+ # if result.response?
559
+ # p result.response
560
+ # else
561
+ # puts "No response received."
562
+ # end
563
+ #
482
564
  def update_connection_profile request, options = nil
483
565
  raise ::ArgumentError, "request must be provided" if request.nil?
484
566
 
@@ -556,6 +638,29 @@ module Google
556
638
  # @return [::Gapic::Operation]
557
639
  #
558
640
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
641
+ #
642
+ # @example Basic example
643
+ # require "google/cloud/datastream/v1"
644
+ #
645
+ # # Create a client object. The client can be reused for multiple calls.
646
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
647
+ #
648
+ # # Create a request. To set request fields, pass in keyword arguments.
649
+ # request = Google::Cloud::Datastream::V1::DeleteConnectionProfileRequest.new
650
+ #
651
+ # # Call the delete_connection_profile method.
652
+ # result = client.delete_connection_profile request
653
+ #
654
+ # # The returned object is of type Gapic::Operation. You can use it to
655
+ # # check the status of an operation, cancel it, or wait for results.
656
+ # # Here is how to wait for a response.
657
+ # result.wait_until_done! timeout: 60
658
+ # if result.response?
659
+ # p result.response
660
+ # else
661
+ # puts "No response received."
662
+ # end
663
+ #
559
664
  def delete_connection_profile request, options = nil
560
665
  raise ::ArgumentError, "request must be provided" if request.nil?
561
666
 
@@ -638,6 +743,22 @@ module Google
638
743
  # @return [::Google::Cloud::Datastream::V1::DiscoverConnectionProfileResponse]
639
744
  #
640
745
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
746
+ #
747
+ # @example Basic example
748
+ # require "google/cloud/datastream/v1"
749
+ #
750
+ # # Create a client object. The client can be reused for multiple calls.
751
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
752
+ #
753
+ # # Create a request. To set request fields, pass in keyword arguments.
754
+ # request = Google::Cloud::Datastream::V1::DiscoverConnectionProfileRequest.new
755
+ #
756
+ # # Call the discover_connection_profile method.
757
+ # result = client.discover_connection_profile request
758
+ #
759
+ # # The returned object is of type Google::Cloud::Datastream::V1::DiscoverConnectionProfileResponse.
760
+ # p result
761
+ #
641
762
  def discover_connection_profile request, options = nil
642
763
  raise ::ArgumentError, "request must be provided" if request.nil?
643
764
 
@@ -714,6 +835,26 @@ module Google
714
835
  # @return [::Google::Cloud::Datastream::V1::ListStreamsResponse]
715
836
  #
716
837
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
838
+ #
839
+ # @example Basic example
840
+ # require "google/cloud/datastream/v1"
841
+ #
842
+ # # Create a client object. The client can be reused for multiple calls.
843
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
844
+ #
845
+ # # Create a request. To set request fields, pass in keyword arguments.
846
+ # request = Google::Cloud::Datastream::V1::ListStreamsRequest.new
847
+ #
848
+ # # Call the list_streams method.
849
+ # result = client.list_streams request
850
+ #
851
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
852
+ # # over elements, and API calls will be issued to fetch pages as needed.
853
+ # result.each do |item|
854
+ # # Each element is of type ::Google::Cloud::Datastream::V1::Stream.
855
+ # p item
856
+ # end
857
+ #
717
858
  def list_streams request, options = nil
718
859
  raise ::ArgumentError, "request must be provided" if request.nil?
719
860
 
@@ -776,6 +917,22 @@ module Google
776
917
  # @return [::Google::Cloud::Datastream::V1::Stream]
777
918
  #
778
919
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
920
+ #
921
+ # @example Basic example
922
+ # require "google/cloud/datastream/v1"
923
+ #
924
+ # # Create a client object. The client can be reused for multiple calls.
925
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
926
+ #
927
+ # # Create a request. To set request fields, pass in keyword arguments.
928
+ # request = Google::Cloud::Datastream::V1::GetStreamRequest.new
929
+ #
930
+ # # Call the get_stream method.
931
+ # result = client.get_stream request
932
+ #
933
+ # # The returned object is of type Google::Cloud::Datastream::V1::Stream.
934
+ # p result
935
+ #
779
936
  def get_stream request, options = nil
780
937
  raise ::ArgumentError, "request must be provided" if request.nil?
781
938
 
@@ -861,6 +1018,29 @@ module Google
861
1018
  # @return [::Gapic::Operation]
862
1019
  #
863
1020
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1021
+ #
1022
+ # @example Basic example
1023
+ # require "google/cloud/datastream/v1"
1024
+ #
1025
+ # # Create a client object. The client can be reused for multiple calls.
1026
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1027
+ #
1028
+ # # Create a request. To set request fields, pass in keyword arguments.
1029
+ # request = Google::Cloud::Datastream::V1::CreateStreamRequest.new
1030
+ #
1031
+ # # Call the create_stream method.
1032
+ # result = client.create_stream request
1033
+ #
1034
+ # # The returned object is of type Gapic::Operation. You can use it to
1035
+ # # check the status of an operation, cancel it, or wait for results.
1036
+ # # Here is how to wait for a response.
1037
+ # result.wait_until_done! timeout: 60
1038
+ # if result.response?
1039
+ # p result.response
1040
+ # else
1041
+ # puts "No response received."
1042
+ # end
1043
+ #
864
1044
  def create_stream request, options = nil
865
1045
  raise ::ArgumentError, "request must be provided" if request.nil?
866
1046
 
@@ -949,6 +1129,29 @@ module Google
949
1129
  # @return [::Gapic::Operation]
950
1130
  #
951
1131
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1132
+ #
1133
+ # @example Basic example
1134
+ # require "google/cloud/datastream/v1"
1135
+ #
1136
+ # # Create a client object. The client can be reused for multiple calls.
1137
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1138
+ #
1139
+ # # Create a request. To set request fields, pass in keyword arguments.
1140
+ # request = Google::Cloud::Datastream::V1::UpdateStreamRequest.new
1141
+ #
1142
+ # # Call the update_stream method.
1143
+ # result = client.update_stream request
1144
+ #
1145
+ # # The returned object is of type Gapic::Operation. You can use it to
1146
+ # # check the status of an operation, cancel it, or wait for results.
1147
+ # # Here is how to wait for a response.
1148
+ # result.wait_until_done! timeout: 60
1149
+ # if result.response?
1150
+ # p result.response
1151
+ # else
1152
+ # puts "No response received."
1153
+ # end
1154
+ #
952
1155
  def update_stream request, options = nil
953
1156
  raise ::ArgumentError, "request must be provided" if request.nil?
954
1157
 
@@ -1026,6 +1229,29 @@ module Google
1026
1229
  # @return [::Gapic::Operation]
1027
1230
  #
1028
1231
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1232
+ #
1233
+ # @example Basic example
1234
+ # require "google/cloud/datastream/v1"
1235
+ #
1236
+ # # Create a client object. The client can be reused for multiple calls.
1237
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1238
+ #
1239
+ # # Create a request. To set request fields, pass in keyword arguments.
1240
+ # request = Google::Cloud::Datastream::V1::DeleteStreamRequest.new
1241
+ #
1242
+ # # Call the delete_stream method.
1243
+ # result = client.delete_stream request
1244
+ #
1245
+ # # The returned object is of type Gapic::Operation. You can use it to
1246
+ # # check the status of an operation, cancel it, or wait for results.
1247
+ # # Here is how to wait for a response.
1248
+ # result.wait_until_done! timeout: 60
1249
+ # if result.response?
1250
+ # p result.response
1251
+ # else
1252
+ # puts "No response received."
1253
+ # end
1254
+ #
1029
1255
  def delete_stream request, options = nil
1030
1256
  raise ::ArgumentError, "request must be provided" if request.nil?
1031
1257
 
@@ -1089,6 +1315,22 @@ module Google
1089
1315
  # @return [::Google::Cloud::Datastream::V1::StreamObject]
1090
1316
  #
1091
1317
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1318
+ #
1319
+ # @example Basic example
1320
+ # require "google/cloud/datastream/v1"
1321
+ #
1322
+ # # Create a client object. The client can be reused for multiple calls.
1323
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1324
+ #
1325
+ # # Create a request. To set request fields, pass in keyword arguments.
1326
+ # request = Google::Cloud::Datastream::V1::GetStreamObjectRequest.new
1327
+ #
1328
+ # # Call the get_stream_object method.
1329
+ # result = client.get_stream_object request
1330
+ #
1331
+ # # The returned object is of type Google::Cloud::Datastream::V1::StreamObject.
1332
+ # p result
1333
+ #
1092
1334
  def get_stream_object request, options = nil
1093
1335
  raise ::ArgumentError, "request must be provided" if request.nil?
1094
1336
 
@@ -1153,6 +1395,22 @@ module Google
1153
1395
  # @return [::Google::Cloud::Datastream::V1::StreamObject]
1154
1396
  #
1155
1397
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1398
+ #
1399
+ # @example Basic example
1400
+ # require "google/cloud/datastream/v1"
1401
+ #
1402
+ # # Create a client object. The client can be reused for multiple calls.
1403
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1404
+ #
1405
+ # # Create a request. To set request fields, pass in keyword arguments.
1406
+ # request = Google::Cloud::Datastream::V1::LookupStreamObjectRequest.new
1407
+ #
1408
+ # # Call the lookup_stream_object method.
1409
+ # result = client.lookup_stream_object request
1410
+ #
1411
+ # # The returned object is of type Google::Cloud::Datastream::V1::StreamObject.
1412
+ # p result
1413
+ #
1156
1414
  def lookup_stream_object request, options = nil
1157
1415
  raise ::ArgumentError, "request must be provided" if request.nil?
1158
1416
 
@@ -1225,6 +1483,26 @@ module Google
1225
1483
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Datastream::V1::StreamObject>]
1226
1484
  #
1227
1485
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1486
+ #
1487
+ # @example Basic example
1488
+ # require "google/cloud/datastream/v1"
1489
+ #
1490
+ # # Create a client object. The client can be reused for multiple calls.
1491
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1492
+ #
1493
+ # # Create a request. To set request fields, pass in keyword arguments.
1494
+ # request = Google::Cloud::Datastream::V1::ListStreamObjectsRequest.new
1495
+ #
1496
+ # # Call the list_stream_objects method.
1497
+ # result = client.list_stream_objects request
1498
+ #
1499
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1500
+ # # over elements, and API calls will be issued to fetch pages as needed.
1501
+ # result.each do |item|
1502
+ # # Each element is of type ::Google::Cloud::Datastream::V1::StreamObject.
1503
+ # p item
1504
+ # end
1505
+ #
1228
1506
  def list_stream_objects request, options = nil
1229
1507
  raise ::ArgumentError, "request must be provided" if request.nil?
1230
1508
 
@@ -1289,6 +1567,22 @@ module Google
1289
1567
  # @return [::Google::Cloud::Datastream::V1::StartBackfillJobResponse]
1290
1568
  #
1291
1569
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1570
+ #
1571
+ # @example Basic example
1572
+ # require "google/cloud/datastream/v1"
1573
+ #
1574
+ # # Create a client object. The client can be reused for multiple calls.
1575
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1576
+ #
1577
+ # # Create a request. To set request fields, pass in keyword arguments.
1578
+ # request = Google::Cloud::Datastream::V1::StartBackfillJobRequest.new
1579
+ #
1580
+ # # Call the start_backfill_job method.
1581
+ # result = client.start_backfill_job request
1582
+ #
1583
+ # # The returned object is of type Google::Cloud::Datastream::V1::StartBackfillJobResponse.
1584
+ # p result
1585
+ #
1292
1586
  def start_backfill_job request, options = nil
1293
1587
  raise ::ArgumentError, "request must be provided" if request.nil?
1294
1588
 
@@ -1352,6 +1646,22 @@ module Google
1352
1646
  # @return [::Google::Cloud::Datastream::V1::StopBackfillJobResponse]
1353
1647
  #
1354
1648
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1649
+ #
1650
+ # @example Basic example
1651
+ # require "google/cloud/datastream/v1"
1652
+ #
1653
+ # # Create a client object. The client can be reused for multiple calls.
1654
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1655
+ #
1656
+ # # Create a request. To set request fields, pass in keyword arguments.
1657
+ # request = Google::Cloud::Datastream::V1::StopBackfillJobRequest.new
1658
+ #
1659
+ # # Call the stop_backfill_job method.
1660
+ # result = client.stop_backfill_job request
1661
+ #
1662
+ # # The returned object is of type Google::Cloud::Datastream::V1::StopBackfillJobResponse.
1663
+ # p result
1664
+ #
1355
1665
  def stop_backfill_job request, options = nil
1356
1666
  raise ::ArgumentError, "request must be provided" if request.nil?
1357
1667
 
@@ -1421,6 +1731,22 @@ module Google
1421
1731
  # @return [::Gapic::Rest::PagedEnumerable<::String>]
1422
1732
  #
1423
1733
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1734
+ #
1735
+ # @example Basic example
1736
+ # require "google/cloud/datastream/v1"
1737
+ #
1738
+ # # Create a client object. The client can be reused for multiple calls.
1739
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1740
+ #
1741
+ # # Create a request. To set request fields, pass in keyword arguments.
1742
+ # request = Google::Cloud::Datastream::V1::FetchStaticIpsRequest.new
1743
+ #
1744
+ # # Call the fetch_static_ips method.
1745
+ # result = client.fetch_static_ips request
1746
+ #
1747
+ # # The returned object is of type Google::Cloud::Datastream::V1::FetchStaticIpsResponse.
1748
+ # p result
1749
+ #
1424
1750
  def fetch_static_ips request, options = nil
1425
1751
  raise ::ArgumentError, "request must be provided" if request.nil?
1426
1752
 
@@ -1504,6 +1830,29 @@ module Google
1504
1830
  # @return [::Gapic::Operation]
1505
1831
  #
1506
1832
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1833
+ #
1834
+ # @example Basic example
1835
+ # require "google/cloud/datastream/v1"
1836
+ #
1837
+ # # Create a client object. The client can be reused for multiple calls.
1838
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1839
+ #
1840
+ # # Create a request. To set request fields, pass in keyword arguments.
1841
+ # request = Google::Cloud::Datastream::V1::CreatePrivateConnectionRequest.new
1842
+ #
1843
+ # # Call the create_private_connection method.
1844
+ # result = client.create_private_connection request
1845
+ #
1846
+ # # The returned object is of type Gapic::Operation. You can use it to
1847
+ # # check the status of an operation, cancel it, or wait for results.
1848
+ # # Here is how to wait for a response.
1849
+ # result.wait_until_done! timeout: 60
1850
+ # if result.response?
1851
+ # p result.response
1852
+ # else
1853
+ # puts "No response received."
1854
+ # end
1855
+ #
1507
1856
  def create_private_connection request, options = nil
1508
1857
  raise ::ArgumentError, "request must be provided" if request.nil?
1509
1858
 
@@ -1567,6 +1916,22 @@ module Google
1567
1916
  # @return [::Google::Cloud::Datastream::V1::PrivateConnection]
1568
1917
  #
1569
1918
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1919
+ #
1920
+ # @example Basic example
1921
+ # require "google/cloud/datastream/v1"
1922
+ #
1923
+ # # Create a client object. The client can be reused for multiple calls.
1924
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
1925
+ #
1926
+ # # Create a request. To set request fields, pass in keyword arguments.
1927
+ # request = Google::Cloud::Datastream::V1::GetPrivateConnectionRequest.new
1928
+ #
1929
+ # # Call the get_private_connection method.
1930
+ # result = client.get_private_connection request
1931
+ #
1932
+ # # The returned object is of type Google::Cloud::Datastream::V1::PrivateConnection.
1933
+ # p result
1934
+ #
1570
1935
  def get_private_connection request, options = nil
1571
1936
  raise ::ArgumentError, "request must be provided" if request.nil?
1572
1937
 
@@ -1647,6 +2012,26 @@ module Google
1647
2012
  # @return [::Google::Cloud::Datastream::V1::ListPrivateConnectionsResponse]
1648
2013
  #
1649
2014
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2015
+ #
2016
+ # @example Basic example
2017
+ # require "google/cloud/datastream/v1"
2018
+ #
2019
+ # # Create a client object. The client can be reused for multiple calls.
2020
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
2021
+ #
2022
+ # # Create a request. To set request fields, pass in keyword arguments.
2023
+ # request = Google::Cloud::Datastream::V1::ListPrivateConnectionsRequest.new
2024
+ #
2025
+ # # Call the list_private_connections method.
2026
+ # result = client.list_private_connections request
2027
+ #
2028
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2029
+ # # over elements, and API calls will be issued to fetch pages as needed.
2030
+ # result.each do |item|
2031
+ # # Each element is of type ::Google::Cloud::Datastream::V1::PrivateConnection.
2032
+ # p item
2033
+ # end
2034
+ #
1650
2035
  def list_private_connections request, options = nil
1651
2036
  raise ::ArgumentError, "request must be provided" if request.nil?
1652
2037
 
@@ -1726,6 +2111,29 @@ module Google
1726
2111
  # @return [::Gapic::Operation]
1727
2112
  #
1728
2113
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2114
+ #
2115
+ # @example Basic example
2116
+ # require "google/cloud/datastream/v1"
2117
+ #
2118
+ # # Create a client object. The client can be reused for multiple calls.
2119
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
2120
+ #
2121
+ # # Create a request. To set request fields, pass in keyword arguments.
2122
+ # request = Google::Cloud::Datastream::V1::DeletePrivateConnectionRequest.new
2123
+ #
2124
+ # # Call the delete_private_connection method.
2125
+ # result = client.delete_private_connection request
2126
+ #
2127
+ # # The returned object is of type Gapic::Operation. You can use it to
2128
+ # # check the status of an operation, cancel it, or wait for results.
2129
+ # # Here is how to wait for a response.
2130
+ # result.wait_until_done! timeout: 60
2131
+ # if result.response?
2132
+ # p result.response
2133
+ # else
2134
+ # puts "No response received."
2135
+ # end
2136
+ #
1729
2137
  def delete_private_connection request, options = nil
1730
2138
  raise ::ArgumentError, "request must be provided" if request.nil?
1731
2139
 
@@ -1808,6 +2216,29 @@ module Google
1808
2216
  # @return [::Gapic::Operation]
1809
2217
  #
1810
2218
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2219
+ #
2220
+ # @example Basic example
2221
+ # require "google/cloud/datastream/v1"
2222
+ #
2223
+ # # Create a client object. The client can be reused for multiple calls.
2224
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
2225
+ #
2226
+ # # Create a request. To set request fields, pass in keyword arguments.
2227
+ # request = Google::Cloud::Datastream::V1::CreateRouteRequest.new
2228
+ #
2229
+ # # Call the create_route method.
2230
+ # result = client.create_route request
2231
+ #
2232
+ # # The returned object is of type Gapic::Operation. You can use it to
2233
+ # # check the status of an operation, cancel it, or wait for results.
2234
+ # # Here is how to wait for a response.
2235
+ # result.wait_until_done! timeout: 60
2236
+ # if result.response?
2237
+ # p result.response
2238
+ # else
2239
+ # puts "No response received."
2240
+ # end
2241
+ #
1811
2242
  def create_route request, options = nil
1812
2243
  raise ::ArgumentError, "request must be provided" if request.nil?
1813
2244
 
@@ -1871,6 +2302,22 @@ module Google
1871
2302
  # @return [::Google::Cloud::Datastream::V1::Route]
1872
2303
  #
1873
2304
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2305
+ #
2306
+ # @example Basic example
2307
+ # require "google/cloud/datastream/v1"
2308
+ #
2309
+ # # Create a client object. The client can be reused for multiple calls.
2310
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
2311
+ #
2312
+ # # Create a request. To set request fields, pass in keyword arguments.
2313
+ # request = Google::Cloud::Datastream::V1::GetRouteRequest.new
2314
+ #
2315
+ # # Call the get_route method.
2316
+ # result = client.get_route request
2317
+ #
2318
+ # # The returned object is of type Google::Cloud::Datastream::V1::Route.
2319
+ # p result
2320
+ #
1874
2321
  def get_route request, options = nil
1875
2322
  raise ::ArgumentError, "request must be provided" if request.nil?
1876
2323
 
@@ -1950,6 +2397,26 @@ module Google
1950
2397
  # @return [::Google::Cloud::Datastream::V1::ListRoutesResponse]
1951
2398
  #
1952
2399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2400
+ #
2401
+ # @example Basic example
2402
+ # require "google/cloud/datastream/v1"
2403
+ #
2404
+ # # Create a client object. The client can be reused for multiple calls.
2405
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
2406
+ #
2407
+ # # Create a request. To set request fields, pass in keyword arguments.
2408
+ # request = Google::Cloud::Datastream::V1::ListRoutesRequest.new
2409
+ #
2410
+ # # Call the list_routes method.
2411
+ # result = client.list_routes request
2412
+ #
2413
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2414
+ # # over elements, and API calls will be issued to fetch pages as needed.
2415
+ # result.each do |item|
2416
+ # # Each element is of type ::Google::Cloud::Datastream::V1::Route.
2417
+ # p item
2418
+ # end
2419
+ #
1953
2420
  def list_routes request, options = nil
1954
2421
  raise ::ArgumentError, "request must be provided" if request.nil?
1955
2422
 
@@ -2026,6 +2493,29 @@ module Google
2026
2493
  # @return [::Gapic::Operation]
2027
2494
  #
2028
2495
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2496
+ #
2497
+ # @example Basic example
2498
+ # require "google/cloud/datastream/v1"
2499
+ #
2500
+ # # Create a client object. The client can be reused for multiple calls.
2501
+ # client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
2502
+ #
2503
+ # # Create a request. To set request fields, pass in keyword arguments.
2504
+ # request = Google::Cloud::Datastream::V1::DeleteRouteRequest.new
2505
+ #
2506
+ # # Call the delete_route method.
2507
+ # result = client.delete_route request
2508
+ #
2509
+ # # The returned object is of type Gapic::Operation. You can use it to
2510
+ # # check the status of an operation, cancel it, or wait for results.
2511
+ # # Here is how to wait for a response.
2512
+ # result.wait_until_done! timeout: 60
2513
+ # if result.response?
2514
+ # p result.response
2515
+ # else
2516
+ # puts "No response received."
2517
+ # end
2518
+ #
2029
2519
  def delete_route request, options = nil
2030
2520
  raise ::ArgumentError, "request must be provided" if request.nil?
2031
2521
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Datastream
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastream-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  - !ruby/object:Gem::Version
263
263
  version: '0'
264
264
  requirements: []
265
- rubygems_version: 3.4.2
265
+ rubygems_version: 3.4.19
266
266
  signing_key:
267
267
  specification_version: 4
268
268
  summary: API Client library for the Datastream V1 API