google-cloud-datastream-v1alpha1 0.4.0 → 0.5.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/lib/google/cloud/datastream/v1alpha1/datastream/client.rb +10 -1
- data/lib/google/cloud/datastream/v1alpha1/datastream/operations.rb +10 -1
- data/lib/google/cloud/datastream/v1alpha1/datastream/rest/client.rb +429 -0
- data/lib/google/cloud/datastream/v1alpha1/datastream/rest/operations.rb +75 -0
- data/lib/google/cloud/datastream/v1alpha1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be2d990377da642cc8b2847ca3cf2eb9f4da3fd632737995027ad79381eae103
|
|
4
|
+
data.tar.gz: 8c0ce4a49c586dd335e6f95fa7cf20a0905af8c775b2645da8feb27097b2bc7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b8d186cfd69078120181ed848958d1a2bc0cd4f34f7ad1dec766e5efd1b7f53a069c29435fe34100a47a93f5f201a0dbcfa9e46714f7d8de835056ac8bc052a
|
|
7
|
+
data.tar.gz: 28e9050fe96ff35d6b11d88c762e21ee0a45dcd5d455a84110f4f2e1ccb898bf1a1bab1327a15064f55e989ade4d8a85cfcc76eb8ce3b07ac92a9d80b2ac3b20
|
|
@@ -169,7 +169,8 @@ module Google
|
|
|
169
169
|
credentials: credentials,
|
|
170
170
|
endpoint: @config.endpoint,
|
|
171
171
|
channel_args: @config.channel_args,
|
|
172
|
-
interceptors: @config.interceptors
|
|
172
|
+
interceptors: @config.interceptors,
|
|
173
|
+
channel_pool_config: @config.channel_pool
|
|
173
174
|
)
|
|
174
175
|
end
|
|
175
176
|
|
|
@@ -2464,6 +2465,14 @@ module Google
|
|
|
2464
2465
|
end
|
|
2465
2466
|
end
|
|
2466
2467
|
|
|
2468
|
+
##
|
|
2469
|
+
# Configuration for the channel pool
|
|
2470
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
2471
|
+
#
|
|
2472
|
+
def channel_pool
|
|
2473
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
2474
|
+
end
|
|
2475
|
+
|
|
2467
2476
|
##
|
|
2468
2477
|
# Configuration RPC class for the Datastream API.
|
|
2469
2478
|
#
|
|
@@ -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
|
#
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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-v1alpha1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.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-
|
|
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
|
+
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.
|
|
29
|
+
version: 0.20.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
220
220
|
- !ruby/object:Gem::Version
|
|
221
221
|
version: '0'
|
|
222
222
|
requirements: []
|
|
223
|
-
rubygems_version: 3.4.
|
|
223
|
+
rubygems_version: 3.4.19
|
|
224
224
|
signing_key:
|
|
225
225
|
specification_version: 4
|
|
226
226
|
summary: API Client library for the Datastream V1alpha1 API
|