google-cloud-datastream-v1alpha1 0.1.2 → 0.3.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: b7e39e9343d74de9dde10d4c0ceb4b942cf779f2795b992cf2d375e7c1188a48
4
- data.tar.gz: 8b20e91fff97ab8ba615b89be9739649878dc8136b9e4eccd0d0f14fac001932
3
+ metadata.gz: 74efe46f067e4112dfea42629eb4625506aaf6cd4fa37870646cc074d55b5160
4
+ data.tar.gz: d8366e985eaa5967b2f91028d69d94730ced0ce382e37d7ea16572319e3ac9e3
5
5
  SHA512:
6
- metadata.gz: 838e36cac73e01b1320567614c98cf537ec63d17267023ee310ae4f0492166d231aae2a6e612299c67d081470eb7ded416bbde88d8309b428a5d3e96b15f35f3
7
- data.tar.gz: 5e9e78337818fe2c0c00fb9042ef687aa22d63d0cfcf2359f0a3b68ea329f021befb25eaa7732f36f58010a9745481a9ec2c38ead3f1e8f5b1ced7171bea4ee3
6
+ metadata.gz: d7229786b9a474a3f3151d97edfe24dae6afca1df4dd374923270feefd90959f09cba44b961c819891806b4c5ef9dfabd5de180b8f0dc1defedc7e9bd6921ce9
7
+ data.tar.gz: 189366d0014ee13bf0b597fba3f4a30c1535a48f474ac22041a3f617325c2121dbb36cb7ae692aae821bf530351cb58049e13169e4b008ad14ddbce35113b241
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Datastream::V1alpha1::ListConnectionProfilesRequest.n
37
37
  response = client.list_connection_profiles request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-datastream-v1alpha1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/datastream/)
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -238,13 +238,11 @@ module Google
238
238
  # # Call the list_connection_profiles method.
239
239
  # result = client.list_connection_profiles request
240
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|
241
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
242
+ # # over elements, and API calls will be issued to fetch pages as needed.
243
+ # result.each do |item|
246
244
  # # Each element is of type ::Google::Cloud::Datastream::V1alpha1::ConnectionProfile.
247
- # p response
245
+ # p item
248
246
  # end
249
247
  #
250
248
  def list_connection_profiles request, options = nil
@@ -433,14 +431,14 @@ module Google
433
431
  # # Call the create_connection_profile method.
434
432
  # result = client.create_connection_profile request
435
433
  #
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:
434
+ # # The returned object is of type Gapic::Operation. You can use it to
435
+ # # check the status of an operation, cancel it, or wait for results.
436
+ # # Here is how to wait for a response.
439
437
  # result.wait_until_done! timeout: 60
440
438
  # if result.response?
441
439
  # p result.response
442
440
  # else
443
- # puts "Error!"
441
+ # puts "No response received."
444
442
  # end
445
443
  #
446
444
  def create_connection_profile request, options = nil
@@ -546,14 +544,14 @@ module Google
546
544
  # # Call the update_connection_profile method.
547
545
  # result = client.update_connection_profile request
548
546
  #
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:
547
+ # # The returned object is of type Gapic::Operation. You can use it to
548
+ # # check the status of an operation, cancel it, or wait for results.
549
+ # # Here is how to wait for a response.
552
550
  # result.wait_until_done! timeout: 60
553
551
  # if result.response?
554
552
  # p result.response
555
553
  # else
556
- # puts "Error!"
554
+ # puts "No response received."
557
555
  # end
558
556
  #
559
557
  def update_connection_profile request, options = nil
@@ -653,14 +651,14 @@ module Google
653
651
  # # Call the delete_connection_profile method.
654
652
  # result = client.delete_connection_profile request
655
653
  #
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:
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.
659
657
  # result.wait_until_done! timeout: 60
660
658
  # if result.response?
661
659
  # p result.response
662
660
  # else
663
- # puts "Error!"
661
+ # puts "No response received."
664
662
  # end
665
663
  #
666
664
  def delete_connection_profile request, options = nil
@@ -862,13 +860,11 @@ module Google
862
860
  # # Call the list_streams method.
863
861
  # result = client.list_streams request
864
862
  #
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|
863
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
864
+ # # over elements, and API calls will be issued to fetch pages as needed.
865
+ # result.each do |item|
870
866
  # # Each element is of type ::Google::Cloud::Datastream::V1alpha1::Stream.
871
- # p response
867
+ # p item
872
868
  # end
873
869
  #
874
870
  def list_streams request, options = nil
@@ -1062,14 +1058,14 @@ module Google
1062
1058
  # # Call the create_stream method.
1063
1059
  # result = client.create_stream request
1064
1060
  #
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:
1061
+ # # The returned object is of type Gapic::Operation. You can use it to
1062
+ # # check the status of an operation, cancel it, or wait for results.
1063
+ # # Here is how to wait for a response.
1068
1064
  # result.wait_until_done! timeout: 60
1069
1065
  # if result.response?
1070
1066
  # p result.response
1071
1067
  # else
1072
- # puts "Error!"
1068
+ # puts "No response received."
1073
1069
  # end
1074
1070
  #
1075
1071
  def create_stream request, options = nil
@@ -1180,14 +1176,14 @@ module Google
1180
1176
  # # Call the update_stream method.
1181
1177
  # result = client.update_stream request
1182
1178
  #
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:
1179
+ # # The returned object is of type Gapic::Operation. You can use it to
1180
+ # # check the status of an operation, cancel it, or wait for results.
1181
+ # # Here is how to wait for a response.
1186
1182
  # result.wait_until_done! timeout: 60
1187
1183
  # if result.response?
1188
1184
  # p result.response
1189
1185
  # else
1190
- # puts "Error!"
1186
+ # puts "No response received."
1191
1187
  # end
1192
1188
  #
1193
1189
  def update_stream request, options = nil
@@ -1287,14 +1283,14 @@ module Google
1287
1283
  # # Call the delete_stream method.
1288
1284
  # result = client.delete_stream request
1289
1285
  #
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:
1286
+ # # The returned object is of type Gapic::Operation. You can use it to
1287
+ # # check the status of an operation, cancel it, or wait for results.
1288
+ # # Here is how to wait for a response.
1293
1289
  # result.wait_until_done! timeout: 60
1294
1290
  # if result.response?
1295
1291
  # p result.response
1296
1292
  # else
1297
- # puts "Error!"
1293
+ # puts "No response received."
1298
1294
  # end
1299
1295
  #
1300
1296
  def delete_stream request, options = nil
@@ -1380,14 +1376,14 @@ module Google
1380
1376
  # # Call the fetch_errors method.
1381
1377
  # result = client.fetch_errors request
1382
1378
  #
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:
1379
+ # # The returned object is of type Gapic::Operation. You can use it to
1380
+ # # check the status of an operation, cancel it, or wait for results.
1381
+ # # Here is how to wait for a response.
1386
1382
  # result.wait_until_done! timeout: 60
1387
1383
  # if result.response?
1388
1384
  # p result.response
1389
1385
  # else
1390
- # puts "Error!"
1386
+ # puts "No response received."
1391
1387
  # end
1392
1388
  #
1393
1389
  def fetch_errors request, options = nil
@@ -1584,14 +1580,14 @@ module Google
1584
1580
  # # Call the create_private_connection method.
1585
1581
  # result = client.create_private_connection request
1586
1582
  #
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:
1583
+ # # The returned object is of type Gapic::Operation. You can use it to
1584
+ # # check the status of an operation, cancel it, or wait for results.
1585
+ # # Here is how to wait for a response.
1590
1586
  # result.wait_until_done! timeout: 60
1591
1587
  # if result.response?
1592
1588
  # p result.response
1593
1589
  # else
1594
- # puts "Error!"
1590
+ # puts "No response received."
1595
1591
  # end
1596
1592
  #
1597
1593
  def create_private_connection request, options = nil
@@ -1779,13 +1775,11 @@ module Google
1779
1775
  # # Call the list_private_connections method.
1780
1776
  # result = client.list_private_connections request
1781
1777
  #
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|
1778
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1779
+ # # over elements, and API calls will be issued to fetch pages as needed.
1780
+ # result.each do |item|
1787
1781
  # # Each element is of type ::Google::Cloud::Datastream::V1alpha1::PrivateConnection.
1788
- # p response
1782
+ # p item
1789
1783
  # end
1790
1784
  #
1791
1785
  def list_private_connections request, options = nil
@@ -1888,14 +1882,14 @@ module Google
1888
1882
  # # Call the delete_private_connection method.
1889
1883
  # result = client.delete_private_connection request
1890
1884
  #
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:
1885
+ # # The returned object is of type Gapic::Operation. You can use it to
1886
+ # # check the status of an operation, cancel it, or wait for results.
1887
+ # # Here is how to wait for a response.
1894
1888
  # result.wait_until_done! timeout: 60
1895
1889
  # if result.response?
1896
1890
  # p result.response
1897
1891
  # else
1898
- # puts "Error!"
1892
+ # puts "No response received."
1899
1893
  # end
1900
1894
  #
1901
1895
  def delete_private_connection request, options = nil
@@ -2000,14 +1994,14 @@ module Google
2000
1994
  # # Call the create_route method.
2001
1995
  # result = client.create_route request
2002
1996
  #
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:
1997
+ # # The returned object is of type Gapic::Operation. You can use it to
1998
+ # # check the status of an operation, cancel it, or wait for results.
1999
+ # # Here is how to wait for a response.
2006
2000
  # result.wait_until_done! timeout: 60
2007
2001
  # if result.response?
2008
2002
  # p result.response
2009
2003
  # else
2010
- # puts "Error!"
2004
+ # puts "No response received."
2011
2005
  # end
2012
2006
  #
2013
2007
  def create_route request, options = nil
@@ -2195,13 +2189,11 @@ module Google
2195
2189
  # # Call the list_routes method.
2196
2190
  # result = client.list_routes request
2197
2191
  #
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|
2192
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2193
+ # # over elements, and API calls will be issued to fetch pages as needed.
2194
+ # result.each do |item|
2203
2195
  # # Each element is of type ::Google::Cloud::Datastream::V1alpha1::Route.
2204
- # p response
2196
+ # p item
2205
2197
  # end
2206
2198
  #
2207
2199
  def list_routes request, options = nil
@@ -2301,14 +2293,14 @@ module Google
2301
2293
  # # Call the delete_route method.
2302
2294
  # result = client.delete_route request
2303
2295
  #
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:
2296
+ # # The returned object is of type Gapic::Operation. You can use it to
2297
+ # # check the status of an operation, cancel it, or wait for results.
2298
+ # # Here is how to wait for a response.
2307
2299
  # result.wait_until_done! timeout: 60
2308
2300
  # if result.response?
2309
2301
  # p result.response
2310
2302
  # else
2311
- # puts "Error!"
2303
+ # puts "No response received."
2312
2304
  # end
2313
2305
  #
2314
2306
  def delete_route request, options = nil
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -155,13 +158,11 @@ module Google
155
158
  # # Call the list_operations method.
156
159
  # result = client.list_operations request
157
160
  #
158
- # # The returned object is of type Gapic::PagedEnumerable. You can
159
- # # iterate over all elements by calling #each, and the enumerable
160
- # # will lazily make API calls to fetch subsequent pages. Other
161
- # # methods are also available for managing paging directly.
162
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
163
164
  # # Each element is of type ::Google::Longrunning::Operation.
164
- # p response
165
+ # p item
165
166
  # end
166
167
  #
167
168
  def list_operations request, options = nil
@@ -250,14 +251,14 @@ module Google
250
251
  # # Call the get_operation method.
251
252
  # result = client.get_operation request
252
253
  #
253
- # # The returned object is of type Gapic::Operation. You can use this
254
- # # object to check the status of an operation, cancel it, or wait
255
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
256
257
  # result.wait_until_done! timeout: 60
257
258
  # if result.response?
258
259
  # p result.response
259
260
  # else
260
- # puts "Error!"
261
+ # puts "No response received."
261
262
  # end
262
263
  #
263
264
  def get_operation request, options = nil
@@ -537,14 +538,14 @@ module Google
537
538
  # # Call the wait_operation method.
538
539
  # result = client.wait_operation request
539
540
  #
540
- # # The returned object is of type Gapic::Operation. You can use this
541
- # # object to check the status of an operation, cancel it, or wait
542
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
543
544
  # result.wait_until_done! timeout: 60
544
545
  # if result.response?
545
546
  # p result.response
546
547
  # else
547
- # puts "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil