google-cloud-datastream-v1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8010f92edc29881e3100047ddc49cb5933579b26eff3c2627830fc81ed3650ff
|
4
|
+
data.tar.gz: bf943cf84295f12e58f9b930fe88373b33232eb4af44a5789740e6c59b95b924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abffd5dc51f759de885ce0e3245fbbccab21e8d892200b533fac1e050b53e5705ae696fa1c67c6d5805e6545648ce484c1343ca98e408e854b14684bd3ddc11a
|
7
|
+
data.tar.gz: d5156bcd2a01b9c86697140a4a4fc697fa0aa166b24c5e933d76239c12c109451fb3eee07b9254092f053b68df146a0d120cf5211dd1ec34af1a38c9a30e7eac
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Datastream service
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "datastream.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -303,10 +306,11 @@ module Google
|
|
303
306
|
# Customize the options with defaults
|
304
307
|
metadata = @config.rpcs.list_connection_profiles.metadata.to_h
|
305
308
|
|
306
|
-
# Set x-goog-api-client
|
309
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
307
310
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
308
311
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
309
312
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
313
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
310
314
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
311
315
|
|
312
316
|
header_params = {}
|
@@ -389,10 +393,11 @@ module Google
|
|
389
393
|
# Customize the options with defaults
|
390
394
|
metadata = @config.rpcs.get_connection_profile.metadata.to_h
|
391
395
|
|
392
|
-
# Set x-goog-api-client
|
396
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
393
397
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
394
398
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
395
399
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
400
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
396
401
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
397
402
|
|
398
403
|
header_params = {}
|
@@ -504,10 +509,11 @@ module Google
|
|
504
509
|
# Customize the options with defaults
|
505
510
|
metadata = @config.rpcs.create_connection_profile.metadata.to_h
|
506
511
|
|
507
|
-
# Set x-goog-api-client
|
512
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
508
513
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
509
514
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
510
515
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
516
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
511
517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
512
518
|
|
513
519
|
header_params = {}
|
@@ -622,10 +628,11 @@ module Google
|
|
622
628
|
# Customize the options with defaults
|
623
629
|
metadata = @config.rpcs.update_connection_profile.metadata.to_h
|
624
630
|
|
625
|
-
# Set x-goog-api-client
|
631
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
626
632
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
627
633
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
628
634
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
635
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
629
636
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
630
637
|
|
631
638
|
header_params = {}
|
@@ -729,10 +736,11 @@ module Google
|
|
729
736
|
# Customize the options with defaults
|
730
737
|
metadata = @config.rpcs.delete_connection_profile.metadata.to_h
|
731
738
|
|
732
|
-
# Set x-goog-api-client
|
739
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
733
740
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
734
741
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
735
742
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
743
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
736
744
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
737
745
|
|
738
746
|
header_params = {}
|
@@ -776,7 +784,7 @@ module Google
|
|
776
784
|
# @param options [::Gapic::CallOptions, ::Hash]
|
777
785
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
778
786
|
#
|
779
|
-
# @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)
|
787
|
+
# @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)
|
780
788
|
# Pass arguments to `discover_connection_profile` via keyword arguments. Note that at
|
781
789
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
782
790
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -799,6 +807,8 @@ module Google
|
|
799
807
|
# MySQL RDBMS to enrich with child data objects and metadata.
|
800
808
|
# @param postgresql_rdbms [::Google::Cloud::Datastream::V1::PostgresqlRdbms, ::Hash]
|
801
809
|
# PostgreSQL RDBMS to enrich with child data objects and metadata.
|
810
|
+
# @param sql_server_rdbms [::Google::Cloud::Datastream::V1::SqlServerRdbms, ::Hash]
|
811
|
+
# SQLServer RDBMS to enrich with child data objects and metadata.
|
802
812
|
#
|
803
813
|
# @yield [response, operation] Access the result along with the RPC operation
|
804
814
|
# @yieldparam response [::Google::Cloud::Datastream::V1::DiscoverConnectionProfileResponse]
|
@@ -834,10 +844,11 @@ module Google
|
|
834
844
|
# Customize the options with defaults
|
835
845
|
metadata = @config.rpcs.discover_connection_profile.metadata.to_h
|
836
846
|
|
837
|
-
# Set x-goog-api-client
|
847
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
838
848
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
839
849
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
840
850
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
851
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
841
852
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
842
853
|
|
843
854
|
header_params = {}
|
@@ -937,10 +948,11 @@ module Google
|
|
937
948
|
# Customize the options with defaults
|
938
949
|
metadata = @config.rpcs.list_streams.metadata.to_h
|
939
950
|
|
940
|
-
# Set x-goog-api-client
|
951
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
941
952
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
942
953
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
943
954
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
955
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
944
956
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
945
957
|
|
946
958
|
header_params = {}
|
@@ -1023,10 +1035,11 @@ module Google
|
|
1023
1035
|
# Customize the options with defaults
|
1024
1036
|
metadata = @config.rpcs.get_stream.metadata.to_h
|
1025
1037
|
|
1026
|
-
# Set x-goog-api-client
|
1038
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1027
1039
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1028
1040
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1029
1041
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1042
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1030
1043
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1031
1044
|
|
1032
1045
|
header_params = {}
|
@@ -1138,10 +1151,11 @@ module Google
|
|
1138
1151
|
# Customize the options with defaults
|
1139
1152
|
metadata = @config.rpcs.create_stream.metadata.to_h
|
1140
1153
|
|
1141
|
-
# Set x-goog-api-client
|
1154
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1142
1155
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1143
1156
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1144
1157
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1158
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1145
1159
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1146
1160
|
|
1147
1161
|
header_params = {}
|
@@ -1256,10 +1270,11 @@ module Google
|
|
1256
1270
|
# Customize the options with defaults
|
1257
1271
|
metadata = @config.rpcs.update_stream.metadata.to_h
|
1258
1272
|
|
1259
|
-
# Set x-goog-api-client
|
1273
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1260
1274
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1261
1275
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1262
1276
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1277
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1263
1278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1264
1279
|
|
1265
1280
|
header_params = {}
|
@@ -1363,10 +1378,11 @@ module Google
|
|
1363
1378
|
# Customize the options with defaults
|
1364
1379
|
metadata = @config.rpcs.delete_stream.metadata.to_h
|
1365
1380
|
|
1366
|
-
# Set x-goog-api-client
|
1381
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1367
1382
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1368
1383
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1369
1384
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1385
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1370
1386
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1371
1387
|
|
1372
1388
|
header_params = {}
|
@@ -1394,6 +1410,107 @@ module Google
|
|
1394
1410
|
raise ::Google::Cloud::Error.from_error(e)
|
1395
1411
|
end
|
1396
1412
|
|
1413
|
+
##
|
1414
|
+
# Use this method to start, resume or recover a stream with a non default CDC
|
1415
|
+
# strategy.
|
1416
|
+
#
|
1417
|
+
# @overload run_stream(request, options = nil)
|
1418
|
+
# Pass arguments to `run_stream` via a request object, either of type
|
1419
|
+
# {::Google::Cloud::Datastream::V1::RunStreamRequest} or an equivalent Hash.
|
1420
|
+
#
|
1421
|
+
# @param request [::Google::Cloud::Datastream::V1::RunStreamRequest, ::Hash]
|
1422
|
+
# A request object representing the call parameters. Required. To specify no
|
1423
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1424
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1425
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1426
|
+
#
|
1427
|
+
# @overload run_stream(name: nil, cdc_strategy: nil, force: nil)
|
1428
|
+
# Pass arguments to `run_stream` via keyword arguments. Note that at
|
1429
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1430
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1431
|
+
#
|
1432
|
+
# @param name [::String]
|
1433
|
+
# Required. Name of the stream resource to start, in the format:
|
1434
|
+
# projects/\\{project_id}/locations/\\{location}/streams/\\{stream_name}
|
1435
|
+
# @param cdc_strategy [::Google::Cloud::Datastream::V1::CdcStrategy, ::Hash]
|
1436
|
+
# Optional. The CDC strategy of the stream. If not set, the system's default
|
1437
|
+
# value will be used.
|
1438
|
+
# @param force [::Boolean]
|
1439
|
+
# Optional. Update the stream without validating it.
|
1440
|
+
#
|
1441
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1442
|
+
# @yieldparam response [::Gapic::Operation]
|
1443
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1444
|
+
#
|
1445
|
+
# @return [::Gapic::Operation]
|
1446
|
+
#
|
1447
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1448
|
+
#
|
1449
|
+
# @example Basic example
|
1450
|
+
# require "google/cloud/datastream/v1"
|
1451
|
+
#
|
1452
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1453
|
+
# client = Google::Cloud::Datastream::V1::Datastream::Client.new
|
1454
|
+
#
|
1455
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1456
|
+
# request = Google::Cloud::Datastream::V1::RunStreamRequest.new
|
1457
|
+
#
|
1458
|
+
# # Call the run_stream method.
|
1459
|
+
# result = client.run_stream request
|
1460
|
+
#
|
1461
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1462
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1463
|
+
# # Here is how to wait for a response.
|
1464
|
+
# result.wait_until_done! timeout: 60
|
1465
|
+
# if result.response?
|
1466
|
+
# p result.response
|
1467
|
+
# else
|
1468
|
+
# puts "No response received."
|
1469
|
+
# end
|
1470
|
+
#
|
1471
|
+
def run_stream request, options = nil
|
1472
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1473
|
+
|
1474
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Datastream::V1::RunStreamRequest
|
1475
|
+
|
1476
|
+
# Converts hash and nil to an options object
|
1477
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1478
|
+
|
1479
|
+
# Customize the options with defaults
|
1480
|
+
metadata = @config.rpcs.run_stream.metadata.to_h
|
1481
|
+
|
1482
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1483
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1484
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1485
|
+
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1486
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1487
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1488
|
+
|
1489
|
+
header_params = {}
|
1490
|
+
if request.name
|
1491
|
+
header_params["name"] = request.name
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1495
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1496
|
+
|
1497
|
+
options.apply_defaults timeout: @config.rpcs.run_stream.timeout,
|
1498
|
+
metadata: metadata,
|
1499
|
+
retry_policy: @config.rpcs.run_stream.retry_policy
|
1500
|
+
|
1501
|
+
options.apply_defaults timeout: @config.timeout,
|
1502
|
+
metadata: @config.metadata,
|
1503
|
+
retry_policy: @config.retry_policy
|
1504
|
+
|
1505
|
+
@datastream_stub.call_rpc :run_stream, request, options: options do |response, operation|
|
1506
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1507
|
+
yield response, operation if block_given?
|
1508
|
+
return response
|
1509
|
+
end
|
1510
|
+
rescue ::GRPC::BadStatus => e
|
1511
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1512
|
+
end
|
1513
|
+
|
1397
1514
|
##
|
1398
1515
|
# Use this method to get details about a stream object.
|
1399
1516
|
#
|
@@ -1449,10 +1566,11 @@ module Google
|
|
1449
1566
|
# Customize the options with defaults
|
1450
1567
|
metadata = @config.rpcs.get_stream_object.metadata.to_h
|
1451
1568
|
|
1452
|
-
# Set x-goog-api-client
|
1569
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1453
1570
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1454
1571
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1455
1572
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1573
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1456
1574
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1457
1575
|
|
1458
1576
|
header_params = {}
|
@@ -1536,10 +1654,11 @@ module Google
|
|
1536
1654
|
# Customize the options with defaults
|
1537
1655
|
metadata = @config.rpcs.lookup_stream_object.metadata.to_h
|
1538
1656
|
|
1539
|
-
# Set x-goog-api-client
|
1657
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1540
1658
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1541
1659
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1542
1660
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1661
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1543
1662
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1544
1663
|
|
1545
1664
|
header_params = {}
|
@@ -1635,10 +1754,11 @@ module Google
|
|
1635
1754
|
# Customize the options with defaults
|
1636
1755
|
metadata = @config.rpcs.list_stream_objects.metadata.to_h
|
1637
1756
|
|
1638
|
-
# Set x-goog-api-client
|
1757
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1639
1758
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1640
1759
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1641
1760
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1761
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1642
1762
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1643
1763
|
|
1644
1764
|
header_params = {}
|
@@ -1722,10 +1842,11 @@ module Google
|
|
1722
1842
|
# Customize the options with defaults
|
1723
1843
|
metadata = @config.rpcs.start_backfill_job.metadata.to_h
|
1724
1844
|
|
1725
|
-
# Set x-goog-api-client
|
1845
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1726
1846
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1727
1847
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1728
1848
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1849
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1729
1850
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1730
1851
|
|
1731
1852
|
header_params = {}
|
@@ -1808,10 +1929,11 @@ module Google
|
|
1808
1929
|
# Customize the options with defaults
|
1809
1930
|
metadata = @config.rpcs.stop_backfill_job.metadata.to_h
|
1810
1931
|
|
1811
|
-
# Set x-goog-api-client
|
1932
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1812
1933
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1813
1934
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1814
1935
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
1936
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1815
1937
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1816
1938
|
|
1817
1939
|
header_params = {}
|
@@ -1900,10 +2022,11 @@ module Google
|
|
1900
2022
|
# Customize the options with defaults
|
1901
2023
|
metadata = @config.rpcs.fetch_static_ips.metadata.to_h
|
1902
2024
|
|
1903
|
-
# Set x-goog-api-client
|
2025
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1904
2026
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1905
2027
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1906
2028
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2029
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1907
2030
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1908
2031
|
|
1909
2032
|
header_params = {}
|
@@ -2012,10 +2135,11 @@ module Google
|
|
2012
2135
|
# Customize the options with defaults
|
2013
2136
|
metadata = @config.rpcs.create_private_connection.metadata.to_h
|
2014
2137
|
|
2015
|
-
# Set x-goog-api-client
|
2138
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2016
2139
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2017
2140
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2018
2141
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2142
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2019
2143
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2020
2144
|
|
2021
2145
|
header_params = {}
|
@@ -2098,10 +2222,11 @@ module Google
|
|
2098
2222
|
# Customize the options with defaults
|
2099
2223
|
metadata = @config.rpcs.get_private_connection.metadata.to_h
|
2100
2224
|
|
2101
|
-
# Set x-goog-api-client
|
2225
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2102
2226
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2103
2227
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2104
2228
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2229
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2105
2230
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2106
2231
|
|
2107
2232
|
header_params = {}
|
@@ -2205,10 +2330,11 @@ module Google
|
|
2205
2330
|
# Customize the options with defaults
|
2206
2331
|
metadata = @config.rpcs.list_private_connections.metadata.to_h
|
2207
2332
|
|
2208
|
-
# Set x-goog-api-client
|
2333
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2209
2334
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2210
2335
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2211
2336
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2337
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2212
2338
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2213
2339
|
|
2214
2340
|
header_params = {}
|
@@ -2315,10 +2441,11 @@ module Google
|
|
2315
2441
|
# Customize the options with defaults
|
2316
2442
|
metadata = @config.rpcs.delete_private_connection.metadata.to_h
|
2317
2443
|
|
2318
|
-
# Set x-goog-api-client
|
2444
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2319
2445
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2320
2446
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2321
2447
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2448
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2322
2449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2323
2450
|
|
2324
2451
|
header_params = {}
|
@@ -2427,10 +2554,11 @@ module Google
|
|
2427
2554
|
# Customize the options with defaults
|
2428
2555
|
metadata = @config.rpcs.create_route.metadata.to_h
|
2429
2556
|
|
2430
|
-
# Set x-goog-api-client
|
2557
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2431
2558
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2432
2559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2433
2560
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2561
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2434
2562
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2435
2563
|
|
2436
2564
|
header_params = {}
|
@@ -2513,10 +2641,11 @@ module Google
|
|
2513
2641
|
# Customize the options with defaults
|
2514
2642
|
metadata = @config.rpcs.get_route.metadata.to_h
|
2515
2643
|
|
2516
|
-
# Set x-goog-api-client
|
2644
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2517
2645
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2518
2646
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2519
2647
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2648
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2520
2649
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2521
2650
|
|
2522
2651
|
header_params = {}
|
@@ -2619,10 +2748,11 @@ module Google
|
|
2619
2748
|
# Customize the options with defaults
|
2620
2749
|
metadata = @config.rpcs.list_routes.metadata.to_h
|
2621
2750
|
|
2622
|
-
# Set x-goog-api-client
|
2751
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2623
2752
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2624
2753
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2625
2754
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2755
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2626
2756
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2627
2757
|
|
2628
2758
|
header_params = {}
|
@@ -2726,10 +2856,11 @@ module Google
|
|
2726
2856
|
# Customize the options with defaults
|
2727
2857
|
metadata = @config.rpcs.delete_route.metadata.to_h
|
2728
2858
|
|
2729
|
-
# Set x-goog-api-client
|
2859
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2730
2860
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2731
2861
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2732
2862
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
2863
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2733
2864
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2734
2865
|
|
2735
2866
|
header_params = {}
|
@@ -2966,6 +3097,11 @@ module Google
|
|
2966
3097
|
#
|
2967
3098
|
attr_reader :delete_stream
|
2968
3099
|
##
|
3100
|
+
# RPC-specific configuration for `run_stream`
|
3101
|
+
# @return [::Gapic::Config::Method]
|
3102
|
+
#
|
3103
|
+
attr_reader :run_stream
|
3104
|
+
##
|
2969
3105
|
# RPC-specific configuration for `get_stream_object`
|
2970
3106
|
# @return [::Gapic::Config::Method]
|
2971
3107
|
#
|
@@ -3060,6 +3196,8 @@ module Google
|
|
3060
3196
|
@update_stream = ::Gapic::Config::Method.new update_stream_config
|
3061
3197
|
delete_stream_config = parent_rpcs.delete_stream if parent_rpcs.respond_to? :delete_stream
|
3062
3198
|
@delete_stream = ::Gapic::Config::Method.new delete_stream_config
|
3199
|
+
run_stream_config = parent_rpcs.run_stream if parent_rpcs.respond_to? :run_stream
|
3200
|
+
@run_stream = ::Gapic::Config::Method.new run_stream_config
|
3063
3201
|
get_stream_object_config = parent_rpcs.get_stream_object if parent_rpcs.respond_to? :get_stream_object
|
3064
3202
|
@get_stream_object = ::Gapic::Config::Method.new get_stream_object_config
|
3065
3203
|
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 Datastream
|
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
|
|
@@ -121,14 +124,6 @@ module Google
|
|
121
124
|
# Lists operations that match the specified filter in the request. If the
|
122
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
123
126
|
#
|
124
|
-
# NOTE: the `name` binding allows API services to override the binding
|
125
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
126
|
-
# override the binding, API services can add a binding such as
|
127
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
128
|
-
# For backwards compatibility, the default name includes the operations
|
129
|
-
# collection id, however overriding users must ensure the name binding
|
130
|
-
# is the parent resource, without the operations collection id.
|
131
|
-
#
|
132
127
|
# @overload list_operations(request, options = nil)
|
133
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
134
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -191,10 +186,11 @@ module Google
|
|
191
186
|
# Customize the options with defaults
|
192
187
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
188
|
|
194
|
-
# Set x-goog-api-client
|
189
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
190
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
191
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
192
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
193
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
194
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
195
|
|
200
196
|
header_params = {}
|
@@ -287,10 +283,11 @@ module Google
|
|
287
283
|
# Customize the options with defaults
|
288
284
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
285
|
|
290
|
-
# Set x-goog-api-client
|
286
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
287
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
288
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
289
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
290
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
291
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
292
|
|
296
293
|
header_params = {}
|
@@ -376,10 +373,11 @@ module Google
|
|
376
373
|
# Customize the options with defaults
|
377
374
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
375
|
|
379
|
-
# Set x-goog-api-client
|
376
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
377
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
378
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
379
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
380
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
381
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
382
|
|
385
383
|
header_params = {}
|
@@ -415,8 +413,9 @@ module Google
|
|
415
413
|
# other methods to check whether the cancellation succeeded or whether the
|
416
414
|
# operation completed despite cancellation. On successful cancellation,
|
417
415
|
# the operation is not deleted; instead, it becomes an operation with
|
418
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
419
|
-
# corresponding to
|
416
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
417
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
418
|
+
# `Code.CANCELLED`.
|
420
419
|
#
|
421
420
|
# @overload cancel_operation(request, options = nil)
|
422
421
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -470,10 +469,11 @@ module Google
|
|
470
469
|
# Customize the options with defaults
|
471
470
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
471
|
|
473
|
-
# Set x-goog-api-client
|
472
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
473
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
474
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
475
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
476
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
477
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
478
|
|
479
479
|
header_params = {}
|
@@ -574,10 +574,11 @@ module Google
|
|
574
574
|
# Customize the options with defaults
|
575
575
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
576
|
|
577
|
-
# Set x-goog-api-client
|
577
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
578
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
579
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
580
|
gapic_version: ::Google::Cloud::Datastream::V1::VERSION
|
581
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
582
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
583
|
|
583
584
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|