google-cloud-datastream-v1 0.10.0 → 0.11.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/v1/datastream/client.rb +164 -26
- data/lib/google/cloud/datastream/v1/datastream/operations.rb +16 -15
- data/lib/google/cloud/datastream/v1/datastream/rest/client.rb +157 -26
- data/lib/google/cloud/datastream/v1/datastream/rest/operations.rb +14 -14
- data/lib/google/cloud/datastream/v1/datastream/rest/service_stub.rb +60 -0
- data/lib/google/cloud/datastream/v1/datastream_pb.rb +2 -1
- data/lib/google/cloud/datastream/v1/datastream_resources_pb.rb +27 -1
- data/lib/google/cloud/datastream/v1/datastream_services_pb.rb +3 -0
- data/lib/google/cloud/datastream/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +55 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/datastream/v1/datastream.rb +27 -3
- data/proto_docs/google/cloud/datastream/v1/datastream_resources.rb +385 -8
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +3 -3
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# Datastream service
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "datastream.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -296,12 +299,13 @@ module Google
|
|
296
299
|
# Customize the options with defaults
|
297
300
|
call_metadata = @config.rpcs.list_connection_profiles.metadata.to_h
|
298
301
|
|
299
|
-
# Set x-goog-api-client
|
302
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
300
303
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
301
304
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
302
305
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
303
306
|
transports_version_send: [:rest]
|
304
307
|
|
308
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
305
309
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
310
|
|
307
311
|
options.apply_defaults timeout: @config.rpcs.list_connection_profiles.timeout,
|
@@ -374,12 +378,13 @@ module Google
|
|
374
378
|
# Customize the options with defaults
|
375
379
|
call_metadata = @config.rpcs.get_connection_profile.metadata.to_h
|
376
380
|
|
377
|
-
# Set x-goog-api-client
|
381
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
378
382
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
379
383
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
380
384
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
381
385
|
transports_version_send: [:rest]
|
382
386
|
|
387
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
388
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
389
|
|
385
390
|
options.apply_defaults timeout: @config.rpcs.get_connection_profile.timeout,
|
@@ -482,12 +487,13 @@ module Google
|
|
482
487
|
# Customize the options with defaults
|
483
488
|
call_metadata = @config.rpcs.create_connection_profile.metadata.to_h
|
484
489
|
|
485
|
-
# Set x-goog-api-client
|
490
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
486
491
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
487
492
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
488
493
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
489
494
|
transports_version_send: [:rest]
|
490
495
|
|
496
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
491
497
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
492
498
|
|
493
499
|
options.apply_defaults timeout: @config.rpcs.create_connection_profile.timeout,
|
@@ -593,12 +599,13 @@ module Google
|
|
593
599
|
# Customize the options with defaults
|
594
600
|
call_metadata = @config.rpcs.update_connection_profile.metadata.to_h
|
595
601
|
|
596
|
-
# Set x-goog-api-client
|
602
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
597
603
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
598
604
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
599
605
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
600
606
|
transports_version_send: [:rest]
|
601
607
|
|
608
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
602
609
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
603
610
|
|
604
611
|
options.apply_defaults timeout: @config.rpcs.update_connection_profile.timeout,
|
@@ -693,12 +700,13 @@ module Google
|
|
693
700
|
# Customize the options with defaults
|
694
701
|
call_metadata = @config.rpcs.delete_connection_profile.metadata.to_h
|
695
702
|
|
696
|
-
# Set x-goog-api-client
|
703
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
697
704
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
698
705
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
699
706
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
700
707
|
transports_version_send: [:rest]
|
701
708
|
|
709
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
702
710
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
703
711
|
|
704
712
|
options.apply_defaults timeout: @config.rpcs.delete_connection_profile.timeout,
|
@@ -734,7 +742,7 @@ module Google
|
|
734
742
|
# @param options [::Gapic::CallOptions, ::Hash]
|
735
743
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
736
744
|
#
|
737
|
-
# @overload discover_connection_profile(parent: nil, connection_profile: nil, connection_profile_name: nil, full_hierarchy: nil, hierarchy_depth: nil, oracle_rdbms: nil, mysql_rdbms: nil, postgresql_rdbms: nil)
|
745
|
+
# @overload discover_connection_profile(parent: nil, connection_profile: nil, connection_profile_name: nil, full_hierarchy: nil, hierarchy_depth: nil, oracle_rdbms: nil, mysql_rdbms: nil, postgresql_rdbms: nil, sql_server_rdbms: nil)
|
738
746
|
# Pass arguments to `discover_connection_profile` via keyword arguments. Note that at
|
739
747
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
740
748
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -757,6 +765,8 @@ module Google
|
|
757
765
|
# MySQL RDBMS to enrich with child data objects and metadata.
|
758
766
|
# @param postgresql_rdbms [::Google::Cloud::Datastream::V1::PostgresqlRdbms, ::Hash]
|
759
767
|
# PostgreSQL RDBMS to enrich with child data objects and metadata.
|
768
|
+
# @param sql_server_rdbms [::Google::Cloud::Datastream::V1::SqlServerRdbms, ::Hash]
|
769
|
+
# SQLServer RDBMS to enrich with child data objects and metadata.
|
760
770
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
761
771
|
# @yieldparam result [::Google::Cloud::Datastream::V1::DiscoverConnectionProfileResponse]
|
762
772
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -791,12 +801,13 @@ module Google
|
|
791
801
|
# Customize the options with defaults
|
792
802
|
call_metadata = @config.rpcs.discover_connection_profile.metadata.to_h
|
793
803
|
|
794
|
-
# Set x-goog-api-client
|
804
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
795
805
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
796
806
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
797
807
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
798
808
|
transports_version_send: [:rest]
|
799
809
|
|
810
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
800
811
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
801
812
|
|
802
813
|
options.apply_defaults timeout: @config.rpcs.discover_connection_profile.timeout,
|
@@ -887,12 +898,13 @@ module Google
|
|
887
898
|
# Customize the options with defaults
|
888
899
|
call_metadata = @config.rpcs.list_streams.metadata.to_h
|
889
900
|
|
890
|
-
# Set x-goog-api-client
|
901
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
891
902
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
892
903
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
893
904
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
894
905
|
transports_version_send: [:rest]
|
895
906
|
|
907
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
896
908
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
897
909
|
|
898
910
|
options.apply_defaults timeout: @config.rpcs.list_streams.timeout,
|
@@ -965,12 +977,13 @@ module Google
|
|
965
977
|
# Customize the options with defaults
|
966
978
|
call_metadata = @config.rpcs.get_stream.metadata.to_h
|
967
979
|
|
968
|
-
# Set x-goog-api-client
|
980
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
969
981
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
970
982
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
971
983
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
972
984
|
transports_version_send: [:rest]
|
973
985
|
|
986
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
974
987
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
975
988
|
|
976
989
|
options.apply_defaults timeout: @config.rpcs.get_stream.timeout,
|
@@ -1073,12 +1086,13 @@ module Google
|
|
1073
1086
|
# Customize the options with defaults
|
1074
1087
|
call_metadata = @config.rpcs.create_stream.metadata.to_h
|
1075
1088
|
|
1076
|
-
# Set x-goog-api-client
|
1089
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1077
1090
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1078
1091
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1079
1092
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1080
1093
|
transports_version_send: [:rest]
|
1081
1094
|
|
1095
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1082
1096
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1083
1097
|
|
1084
1098
|
options.apply_defaults timeout: @config.rpcs.create_stream.timeout,
|
@@ -1184,12 +1198,13 @@ module Google
|
|
1184
1198
|
# Customize the options with defaults
|
1185
1199
|
call_metadata = @config.rpcs.update_stream.metadata.to_h
|
1186
1200
|
|
1187
|
-
# Set x-goog-api-client
|
1201
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1188
1202
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1189
1203
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1190
1204
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1191
1205
|
transports_version_send: [:rest]
|
1192
1206
|
|
1207
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1193
1208
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1194
1209
|
|
1195
1210
|
options.apply_defaults timeout: @config.rpcs.update_stream.timeout,
|
@@ -1284,12 +1299,13 @@ module Google
|
|
1284
1299
|
# Customize the options with defaults
|
1285
1300
|
call_metadata = @config.rpcs.delete_stream.metadata.to_h
|
1286
1301
|
|
1287
|
-
# Set x-goog-api-client
|
1302
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1288
1303
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1289
1304
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1290
1305
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1291
1306
|
transports_version_send: [:rest]
|
1292
1307
|
|
1308
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1293
1309
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1294
1310
|
|
1295
1311
|
options.apply_defaults timeout: @config.rpcs.delete_stream.timeout,
|
@@ -1309,6 +1325,100 @@ module Google
|
|
1309
1325
|
raise ::Google::Cloud::Error.from_error(e)
|
1310
1326
|
end
|
1311
1327
|
|
1328
|
+
##
|
1329
|
+
# Use this method to start, resume or recover a stream with a non default CDC
|
1330
|
+
# strategy.
|
1331
|
+
#
|
1332
|
+
# @overload run_stream(request, options = nil)
|
1333
|
+
# Pass arguments to `run_stream` via a request object, either of type
|
1334
|
+
# {::Google::Cloud::Datastream::V1::RunStreamRequest} or an equivalent Hash.
|
1335
|
+
#
|
1336
|
+
# @param request [::Google::Cloud::Datastream::V1::RunStreamRequest, ::Hash]
|
1337
|
+
# A request object representing the call parameters. Required. To specify no
|
1338
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1339
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1340
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1341
|
+
#
|
1342
|
+
# @overload run_stream(name: nil, cdc_strategy: nil, force: nil)
|
1343
|
+
# Pass arguments to `run_stream` via keyword arguments. Note that at
|
1344
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1345
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1346
|
+
#
|
1347
|
+
# @param name [::String]
|
1348
|
+
# Required. Name of the stream resource to start, in the format:
|
1349
|
+
# projects/\\{project_id}/locations/\\{location}/streams/\\{stream_name}
|
1350
|
+
# @param cdc_strategy [::Google::Cloud::Datastream::V1::CdcStrategy, ::Hash]
|
1351
|
+
# Optional. The CDC strategy of the stream. If not set, the system's default
|
1352
|
+
# value will be used.
|
1353
|
+
# @param force [::Boolean]
|
1354
|
+
# Optional. Update the stream without validating it.
|
1355
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1356
|
+
# @yieldparam result [::Gapic::Operation]
|
1357
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1358
|
+
#
|
1359
|
+
# @return [::Gapic::Operation]
|
1360
|
+
#
|
1361
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1362
|
+
#
|
1363
|
+
# @example Basic example
|
1364
|
+
# require "google/cloud/datastream/v1"
|
1365
|
+
#
|
1366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1367
|
+
# client = Google::Cloud::Datastream::V1::Datastream::Rest::Client.new
|
1368
|
+
#
|
1369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1370
|
+
# request = Google::Cloud::Datastream::V1::RunStreamRequest.new
|
1371
|
+
#
|
1372
|
+
# # Call the run_stream method.
|
1373
|
+
# result = client.run_stream request
|
1374
|
+
#
|
1375
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1376
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1377
|
+
# # Here is how to wait for a response.
|
1378
|
+
# result.wait_until_done! timeout: 60
|
1379
|
+
# if result.response?
|
1380
|
+
# p result.response
|
1381
|
+
# else
|
1382
|
+
# puts "No response received."
|
1383
|
+
# end
|
1384
|
+
#
|
1385
|
+
def run_stream request, options = nil
|
1386
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1387
|
+
|
1388
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Datastream::V1::RunStreamRequest
|
1389
|
+
|
1390
|
+
# Converts hash and nil to an options object
|
1391
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1392
|
+
|
1393
|
+
# Customize the options with defaults
|
1394
|
+
call_metadata = @config.rpcs.run_stream.metadata.to_h
|
1395
|
+
|
1396
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1397
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1398
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1399
|
+
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1400
|
+
transports_version_send: [:rest]
|
1401
|
+
|
1402
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1403
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1404
|
+
|
1405
|
+
options.apply_defaults timeout: @config.rpcs.run_stream.timeout,
|
1406
|
+
metadata: call_metadata,
|
1407
|
+
retry_policy: @config.rpcs.run_stream.retry_policy
|
1408
|
+
|
1409
|
+
options.apply_defaults timeout: @config.timeout,
|
1410
|
+
metadata: @config.metadata,
|
1411
|
+
retry_policy: @config.retry_policy
|
1412
|
+
|
1413
|
+
@datastream_stub.run_stream request, options do |result, operation|
|
1414
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1415
|
+
yield result, operation if block_given?
|
1416
|
+
return result
|
1417
|
+
end
|
1418
|
+
rescue ::Gapic::Rest::Error => e
|
1419
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1420
|
+
end
|
1421
|
+
|
1312
1422
|
##
|
1313
1423
|
# Use this method to get details about a stream object.
|
1314
1424
|
#
|
@@ -1363,12 +1473,13 @@ module Google
|
|
1363
1473
|
# Customize the options with defaults
|
1364
1474
|
call_metadata = @config.rpcs.get_stream_object.metadata.to_h
|
1365
1475
|
|
1366
|
-
# Set x-goog-api-client
|
1476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1367
1477
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1368
1478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1369
1479
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1370
1480
|
transports_version_send: [:rest]
|
1371
1481
|
|
1482
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1372
1483
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1373
1484
|
|
1374
1485
|
options.apply_defaults timeout: @config.rpcs.get_stream_object.timeout,
|
@@ -1443,12 +1554,13 @@ module Google
|
|
1443
1554
|
# Customize the options with defaults
|
1444
1555
|
call_metadata = @config.rpcs.lookup_stream_object.metadata.to_h
|
1445
1556
|
|
1446
|
-
# Set x-goog-api-client
|
1557
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1447
1558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1448
1559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1449
1560
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1450
1561
|
transports_version_send: [:rest]
|
1451
1562
|
|
1563
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1452
1564
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1453
1565
|
|
1454
1566
|
options.apply_defaults timeout: @config.rpcs.lookup_stream_object.timeout,
|
@@ -1535,12 +1647,13 @@ module Google
|
|
1535
1647
|
# Customize the options with defaults
|
1536
1648
|
call_metadata = @config.rpcs.list_stream_objects.metadata.to_h
|
1537
1649
|
|
1538
|
-
# Set x-goog-api-client
|
1650
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1539
1651
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1540
1652
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1541
1653
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1542
1654
|
transports_version_send: [:rest]
|
1543
1655
|
|
1656
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1544
1657
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1545
1658
|
|
1546
1659
|
options.apply_defaults timeout: @config.rpcs.list_stream_objects.timeout,
|
@@ -1615,12 +1728,13 @@ module Google
|
|
1615
1728
|
# Customize the options with defaults
|
1616
1729
|
call_metadata = @config.rpcs.start_backfill_job.metadata.to_h
|
1617
1730
|
|
1618
|
-
# Set x-goog-api-client
|
1731
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1619
1732
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1620
1733
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1621
1734
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1622
1735
|
transports_version_send: [:rest]
|
1623
1736
|
|
1737
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1624
1738
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1625
1739
|
|
1626
1740
|
options.apply_defaults timeout: @config.rpcs.start_backfill_job.timeout,
|
@@ -1694,12 +1808,13 @@ module Google
|
|
1694
1808
|
# Customize the options with defaults
|
1695
1809
|
call_metadata = @config.rpcs.stop_backfill_job.metadata.to_h
|
1696
1810
|
|
1697
|
-
# Set x-goog-api-client
|
1811
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1698
1812
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1699
1813
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1700
1814
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1701
1815
|
transports_version_send: [:rest]
|
1702
1816
|
|
1817
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1703
1818
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1704
1819
|
|
1705
1820
|
options.apply_defaults timeout: @config.rpcs.stop_backfill_job.timeout,
|
@@ -1779,12 +1894,13 @@ module Google
|
|
1779
1894
|
# Customize the options with defaults
|
1780
1895
|
call_metadata = @config.rpcs.fetch_static_ips.metadata.to_h
|
1781
1896
|
|
1782
|
-
# Set x-goog-api-client
|
1897
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1783
1898
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1784
1899
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1785
1900
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1786
1901
|
transports_version_send: [:rest]
|
1787
1902
|
|
1903
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1788
1904
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1789
1905
|
|
1790
1906
|
options.apply_defaults timeout: @config.rpcs.fetch_static_ips.timeout,
|
@@ -1885,12 +2001,13 @@ module Google
|
|
1885
2001
|
# Customize the options with defaults
|
1886
2002
|
call_metadata = @config.rpcs.create_private_connection.metadata.to_h
|
1887
2003
|
|
1888
|
-
# Set x-goog-api-client
|
2004
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1889
2005
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1890
2006
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1891
2007
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1892
2008
|
transports_version_send: [:rest]
|
1893
2009
|
|
2010
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1894
2011
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1895
2012
|
|
1896
2013
|
options.apply_defaults timeout: @config.rpcs.create_private_connection.timeout,
|
@@ -1964,12 +2081,13 @@ module Google
|
|
1964
2081
|
# Customize the options with defaults
|
1965
2082
|
call_metadata = @config.rpcs.get_private_connection.metadata.to_h
|
1966
2083
|
|
1967
|
-
# Set x-goog-api-client
|
2084
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1968
2085
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1969
2086
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1970
2087
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
1971
2088
|
transports_version_send: [:rest]
|
1972
2089
|
|
2090
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1973
2091
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1974
2092
|
|
1975
2093
|
options.apply_defaults timeout: @config.rpcs.get_private_connection.timeout,
|
@@ -2064,12 +2182,13 @@ module Google
|
|
2064
2182
|
# Customize the options with defaults
|
2065
2183
|
call_metadata = @config.rpcs.list_private_connections.metadata.to_h
|
2066
2184
|
|
2067
|
-
# Set x-goog-api-client
|
2185
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2068
2186
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2069
2187
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2070
2188
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
2071
2189
|
transports_version_send: [:rest]
|
2072
2190
|
|
2191
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2073
2192
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2074
2193
|
|
2075
2194
|
options.apply_defaults timeout: @config.rpcs.list_private_connections.timeout,
|
@@ -2166,12 +2285,13 @@ module Google
|
|
2166
2285
|
# Customize the options with defaults
|
2167
2286
|
call_metadata = @config.rpcs.delete_private_connection.metadata.to_h
|
2168
2287
|
|
2169
|
-
# Set x-goog-api-client
|
2288
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2170
2289
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2171
2290
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2172
2291
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
2173
2292
|
transports_version_send: [:rest]
|
2174
2293
|
|
2294
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2175
2295
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2176
2296
|
|
2177
2297
|
options.apply_defaults timeout: @config.rpcs.delete_private_connection.timeout,
|
@@ -2271,12 +2391,13 @@ module Google
|
|
2271
2391
|
# Customize the options with defaults
|
2272
2392
|
call_metadata = @config.rpcs.create_route.metadata.to_h
|
2273
2393
|
|
2274
|
-
# Set x-goog-api-client
|
2394
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2275
2395
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2276
2396
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2277
2397
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
2278
2398
|
transports_version_send: [:rest]
|
2279
2399
|
|
2400
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2280
2401
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2281
2402
|
|
2282
2403
|
options.apply_defaults timeout: @config.rpcs.create_route.timeout,
|
@@ -2350,12 +2471,13 @@ module Google
|
|
2350
2471
|
# Customize the options with defaults
|
2351
2472
|
call_metadata = @config.rpcs.get_route.metadata.to_h
|
2352
2473
|
|
2353
|
-
# Set x-goog-api-client
|
2474
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2354
2475
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2355
2476
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2356
2477
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
2357
2478
|
transports_version_send: [:rest]
|
2358
2479
|
|
2480
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2359
2481
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2360
2482
|
|
2361
2483
|
options.apply_defaults timeout: @config.rpcs.get_route.timeout,
|
@@ -2449,12 +2571,13 @@ module Google
|
|
2449
2571
|
# Customize the options with defaults
|
2450
2572
|
call_metadata = @config.rpcs.list_routes.metadata.to_h
|
2451
2573
|
|
2452
|
-
# Set x-goog-api-client
|
2574
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2453
2575
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2454
2576
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2455
2577
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
2456
2578
|
transports_version_send: [:rest]
|
2457
2579
|
|
2580
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2458
2581
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2459
2582
|
|
2460
2583
|
options.apply_defaults timeout: @config.rpcs.list_routes.timeout,
|
@@ -2548,12 +2671,13 @@ module Google
|
|
2548
2671
|
# Customize the options with defaults
|
2549
2672
|
call_metadata = @config.rpcs.delete_route.metadata.to_h
|
2550
2673
|
|
2551
|
-
# Set x-goog-api-client
|
2674
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2552
2675
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2553
2676
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2554
2677
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
2555
2678
|
transports_version_send: [:rest]
|
2556
2679
|
|
2680
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2557
2681
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2558
2682
|
|
2559
2683
|
options.apply_defaults timeout: @config.rpcs.delete_route.timeout,
|
@@ -2769,6 +2893,11 @@ module Google
|
|
2769
2893
|
#
|
2770
2894
|
attr_reader :delete_stream
|
2771
2895
|
##
|
2896
|
+
# RPC-specific configuration for `run_stream`
|
2897
|
+
# @return [::Gapic::Config::Method]
|
2898
|
+
#
|
2899
|
+
attr_reader :run_stream
|
2900
|
+
##
|
2772
2901
|
# RPC-specific configuration for `get_stream_object`
|
2773
2902
|
# @return [::Gapic::Config::Method]
|
2774
2903
|
#
|
@@ -2863,6 +2992,8 @@ module Google
|
|
2863
2992
|
@update_stream = ::Gapic::Config::Method.new update_stream_config
|
2864
2993
|
delete_stream_config = parent_rpcs.delete_stream if parent_rpcs.respond_to? :delete_stream
|
2865
2994
|
@delete_stream = ::Gapic::Config::Method.new delete_stream_config
|
2995
|
+
run_stream_config = parent_rpcs.run_stream if parent_rpcs.respond_to? :run_stream
|
2996
|
+
@run_stream = ::Gapic::Config::Method.new run_stream_config
|
2866
2997
|
get_stream_object_config = parent_rpcs.get_stream_object if parent_rpcs.respond_to? :get_stream_object
|
2867
2998
|
@get_stream_object = ::Gapic::Config::Method.new get_stream_object_config
|
2868
2999
|
lookup_stream_object_config = parent_rpcs.lookup_stream_object if parent_rpcs.respond_to? :lookup_stream_object
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "datastream.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -112,14 +115,6 @@ module Google
|
|
112
115
|
# Lists operations that match the specified filter in the request. If the
|
113
116
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
114
117
|
#
|
115
|
-
# NOTE: the `name` binding allows API services to override the binding
|
116
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
117
|
-
# override the binding, API services can add a binding such as
|
118
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
119
|
-
# For backwards compatibility, the default name includes the operations
|
120
|
-
# collection id, however overriding users must ensure the name binding
|
121
|
-
# is the parent resource, without the operations collection id.
|
122
|
-
#
|
123
118
|
# @overload list_operations(request, options = nil)
|
124
119
|
# Pass arguments to `list_operations` via a request object, either of type
|
125
120
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -181,12 +176,13 @@ module Google
|
|
181
176
|
# Customize the options with defaults
|
182
177
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
178
|
|
184
|
-
# Set x-goog-api-client
|
179
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
180
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
181
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
182
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
188
183
|
transports_version_send: [:rest]
|
189
184
|
|
185
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
186
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
187
|
|
192
188
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +265,13 @@ module Google
|
|
269
265
|
# Customize the options with defaults
|
270
266
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
267
|
|
272
|
-
# Set x-goog-api-client
|
268
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
269
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
271
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
276
272
|
transports_version_send: [:rest]
|
277
273
|
|
274
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
275
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
276
|
|
280
277
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +348,13 @@ module Google
|
|
351
348
|
# Customize the options with defaults
|
352
349
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
350
|
|
354
|
-
# Set x-goog-api-client
|
351
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
352
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
353
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
354
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
358
355
|
transports_version_send: [:rest]
|
359
356
|
|
357
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
358
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
359
|
|
362
360
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -384,8 +382,9 @@ module Google
|
|
384
382
|
# other methods to check whether the cancellation succeeded or whether the
|
385
383
|
# operation completed despite cancellation. On successful cancellation,
|
386
384
|
# the operation is not deleted; instead, it becomes an operation with
|
387
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
388
|
-
# corresponding to
|
385
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
386
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
387
|
+
# `Code.CANCELLED`.
|
389
388
|
#
|
390
389
|
# @overload cancel_operation(request, options = nil)
|
391
390
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -438,12 +437,13 @@ module Google
|
|
438
437
|
# Customize the options with defaults
|
439
438
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
439
|
|
441
|
-
# Set x-goog-api-client
|
440
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
441
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
442
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
443
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION,
|
445
444
|
transports_version_send: [:rest]
|
446
445
|
|
446
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
447
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
448
|
|
449
449
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|