google-cloud-datastream-v1 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/datastream/v1/datastream/client.rb +27 -20
- data/lib/google/cloud/datastream/v1/datastream/operations.rb +5 -3
- data/lib/google/cloud/datastream/v1/datastream/rest/client.rb +27 -20
- data/lib/google/cloud/datastream/v1/datastream/rest/operations.rb +9 -7
- data/lib/google/cloud/datastream/v1/datastream/rest/service_stub.rb +25 -25
- data/lib/google/cloud/datastream/v1/datastream_pb.rb +28 -190
- data/lib/google/cloud/datastream/v1/datastream_resources_pb.rb +26 -365
- data/lib/google/cloud/datastream/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/datastream/v1/datastream.rb +24 -17
- data/proto_docs/google/cloud/datastream/v1/datastream_resources.rb +39 -12
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -24,8 +24,8 @@ module Google
|
|
24
24
|
# Request message for 'discover' ConnectionProfile request.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The parent resource of the connection profile type. Must be in
|
28
|
-
# format `projects/*/locations/*`.
|
27
|
+
# Required. The parent resource of the connection profile type. Must be in
|
28
|
+
# the format `projects/*/locations/*`.
|
29
29
|
# @!attribute [rw] connection_profile
|
30
30
|
# @return [::Google::Cloud::Datastream::V1::ConnectionProfile]
|
31
31
|
# An ad-hoc connection profile configuration.
|
@@ -71,8 +71,8 @@ module Google
|
|
71
71
|
# Request message for 'FetchStaticIps' request.
|
72
72
|
# @!attribute [rw] name
|
73
73
|
# @return [::String]
|
74
|
-
# Required. The resource name for the location for which static IPs should be
|
75
|
-
# Must be in the format `projects/*/locations/*`.
|
74
|
+
# Required. The resource name for the location for which static IPs should be
|
75
|
+
# returned. Must be in the format `projects/*/locations/*`.
|
76
76
|
# @!attribute [rw] page_size
|
77
77
|
# @return [::Integer]
|
78
78
|
# Maximum number of Ips to return, will likely not be specified.
|
@@ -177,8 +177,8 @@ module Google
|
|
177
177
|
# not supported (00000000-0000-0000-0000-000000000000).
|
178
178
|
# @!attribute [rw] validate_only
|
179
179
|
# @return [::Boolean]
|
180
|
-
# Optional. Only validate the connection profile, but don't create any
|
181
|
-
# The default is false.
|
180
|
+
# Optional. Only validate the connection profile, but don't create any
|
181
|
+
# resources. The default is false.
|
182
182
|
# @!attribute [rw] force
|
183
183
|
# @return [::Boolean]
|
184
184
|
# Optional. Create the connection profile without validating it.
|
@@ -215,8 +215,8 @@ module Google
|
|
215
215
|
# not supported (00000000-0000-0000-0000-000000000000).
|
216
216
|
# @!attribute [rw] validate_only
|
217
217
|
# @return [::Boolean]
|
218
|
-
# Optional. Only validate the connection profile, but don't update any
|
219
|
-
# The default is false.
|
218
|
+
# Optional. Only validate the connection profile, but don't update any
|
219
|
+
# resources. The default is false.
|
220
220
|
# @!attribute [rw] force
|
221
221
|
# @return [::Boolean]
|
222
222
|
# Optional. Update the connection profile without validating it.
|
@@ -366,8 +366,8 @@ module Google
|
|
366
366
|
# not supported (00000000-0000-0000-0000-000000000000).
|
367
367
|
# @!attribute [rw] validate_only
|
368
368
|
# @return [::Boolean]
|
369
|
-
# Optional. Only validate the stream with the changes, without actually
|
370
|
-
# The default is false.
|
369
|
+
# Optional. Only validate the stream with the changes, without actually
|
370
|
+
# updating it. The default is false.
|
371
371
|
# @!attribute [rw] force
|
372
372
|
# @return [::Boolean]
|
373
373
|
# Optional. Update the stream without validating it.
|
@@ -425,7 +425,8 @@ module Google
|
|
425
425
|
# Request for manually initiating a backfill job for a specific stream object.
|
426
426
|
# @!attribute [rw] object
|
427
427
|
# @return [::String]
|
428
|
-
# Required. The name of the stream object resource to start a backfill job
|
428
|
+
# Required. The name of the stream object resource to start a backfill job
|
429
|
+
# for.
|
429
430
|
class StartBackfillJobRequest
|
430
431
|
include ::Google::Protobuf::MessageExts
|
431
432
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -444,7 +445,8 @@ module Google
|
|
444
445
|
# object.
|
445
446
|
# @!attribute [rw] object
|
446
447
|
# @return [::String]
|
447
|
-
# Required. The name of the stream object resource to stop the backfill job
|
448
|
+
# Required. The name of the stream object resource to stop the backfill job
|
449
|
+
# for.
|
448
450
|
class StopBackfillJobRequest
|
449
451
|
include ::Google::Protobuf::MessageExts
|
450
452
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -512,8 +514,9 @@ module Google
|
|
512
514
|
# @return [::Boolean]
|
513
515
|
# Output only. Identifies whether the user has requested cancellation
|
514
516
|
# of the operation. Operations that have successfully been cancelled
|
515
|
-
# have [Operation.error][] value with a
|
516
|
-
# corresponding to
|
517
|
+
# have [Operation.error][] value with a
|
518
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
|
519
|
+
# `Code.CANCELLED`.
|
517
520
|
# @!attribute [r] api_version
|
518
521
|
# @return [::String]
|
519
522
|
# Output only. API version used to start the operation.
|
@@ -550,6 +553,9 @@ module Google
|
|
550
553
|
#
|
551
554
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
552
555
|
# not supported (00000000-0000-0000-0000-000000000000).
|
556
|
+
# @!attribute [rw] force
|
557
|
+
# @return [::Boolean]
|
558
|
+
# Optional. If set to true, will skip validations.
|
553
559
|
class CreatePrivateConnectionRequest
|
554
560
|
include ::Google::Protobuf::MessageExts
|
555
561
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -558,7 +564,8 @@ module Google
|
|
558
564
|
# Request for listing private connections.
|
559
565
|
# @!attribute [rw] parent
|
560
566
|
# @return [::String]
|
561
|
-
# Required. The parent that owns the collection of private connectivity
|
567
|
+
# Required. The parent that owns the collection of private connectivity
|
568
|
+
# configurations.
|
562
569
|
# @!attribute [rw] page_size
|
563
570
|
# @return [::Integer]
|
564
571
|
# Maximum number of private connectivity configurations to return.
|
@@ -621,8 +628,8 @@ module Google
|
|
621
628
|
# not supported (00000000-0000-0000-0000-000000000000).
|
622
629
|
# @!attribute [rw] force
|
623
630
|
# @return [::Boolean]
|
624
|
-
# Optional. If set to true, any child routes that belong to this
|
625
|
-
# also be deleted.
|
631
|
+
# Optional. If set to true, any child routes that belong to this
|
632
|
+
# PrivateConnection will also be deleted.
|
626
633
|
class DeletePrivateConnectionRequest
|
627
634
|
include ::Google::Protobuf::MessageExts
|
628
635
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -114,7 +114,9 @@ module Google
|
|
114
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
115
|
end
|
116
116
|
|
117
|
-
# Static IP address connectivity.
|
117
|
+
# Static IP address connectivity. Used when the source database is configured
|
118
|
+
# to allow incoming connections from the Datastream public IP addresses
|
119
|
+
# for the region specified in the connection profile.
|
118
120
|
class StaticServiceIpConnectivity
|
119
121
|
include ::Google::Protobuf::MessageExts
|
120
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -177,7 +179,8 @@ module Google
|
|
177
179
|
# Output only. The state of the Private Connection.
|
178
180
|
# @!attribute [r] error
|
179
181
|
# @return [::Google::Cloud::Datastream::V1::Error]
|
180
|
-
# Output only. In case of error, the details of the error in a user-friendly
|
182
|
+
# Output only. In case of error, the details of the error in a user-friendly
|
183
|
+
# format.
|
181
184
|
# @!attribute [rw] vpc_peering_config
|
182
185
|
# @return [::Google::Cloud::Datastream::V1::VpcPeeringConfig]
|
183
186
|
# VPC Peering Config.
|
@@ -282,8 +285,8 @@ module Google
|
|
282
285
|
# Output only. Indicates whether the client_certificate field is set.
|
283
286
|
# @!attribute [rw] ca_certificate
|
284
287
|
# @return [::String]
|
285
|
-
# Input only. PEM-encoded certificate of the CA that signed the source
|
286
|
-
# server's certificate.
|
288
|
+
# Input only. PEM-encoded certificate of the CA that signed the source
|
289
|
+
# database server's certificate.
|
287
290
|
# @!attribute [r] ca_certificate_set
|
288
291
|
# @return [::Boolean]
|
289
292
|
# Output only. Indicates whether the ca_certificate field is set.
|
@@ -424,14 +427,18 @@ module Google
|
|
424
427
|
# Oracle objects to exclude from the stream.
|
425
428
|
# @!attribute [rw] max_concurrent_cdc_tasks
|
426
429
|
# @return [::Integer]
|
427
|
-
# Maximum number of concurrent CDC tasks. The number should be non
|
428
|
-
# If not set (or set to 0), the system's default value
|
430
|
+
# Maximum number of concurrent CDC tasks. The number should be non-negative.
|
431
|
+
# If not set (or set to 0), the system's default value is used.
|
432
|
+
# @!attribute [rw] max_concurrent_backfill_tasks
|
433
|
+
# @return [::Integer]
|
434
|
+
# Maximum number of concurrent backfill tasks. The number should be
|
435
|
+
# non-negative. If not set (or set to 0), the system's default value is used.
|
429
436
|
# @!attribute [rw] drop_large_objects
|
430
437
|
# @return [::Google::Cloud::Datastream::V1::OracleSourceConfig::DropLargeObjects]
|
431
438
|
# Drop large object values.
|
432
439
|
# @!attribute [rw] stream_large_objects
|
433
440
|
# @return [::Google::Cloud::Datastream::V1::OracleSourceConfig::StreamLargeObjects]
|
434
|
-
# Stream large object values.
|
441
|
+
# Stream large object values. NOTE: This feature is currently experimental.
|
435
442
|
class OracleSourceConfig
|
436
443
|
include ::Google::Protobuf::MessageExts
|
437
444
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -523,12 +530,17 @@ module Google
|
|
523
530
|
# PostgreSQL objects to exclude from the stream.
|
524
531
|
# @!attribute [rw] replication_slot
|
525
532
|
# @return [::String]
|
526
|
-
# Required. The name of the logical replication slot that's
|
527
|
-
# pgoutput plugin.
|
533
|
+
# Required. Immutable. The name of the logical replication slot that's
|
534
|
+
# configured with the pgoutput plugin.
|
528
535
|
# @!attribute [rw] publication
|
529
536
|
# @return [::String]
|
530
|
-
# Required. The name of the publication that includes the set of all tables
|
531
|
-
# defined in the stream's include_objects.
|
537
|
+
# Required. The name of the publication that includes the set of all tables
|
538
|
+
# that are defined in the stream's include_objects.
|
539
|
+
# @!attribute [rw] max_concurrent_backfill_tasks
|
540
|
+
# @return [::Integer]
|
541
|
+
# Maximum number of concurrent backfill tasks. The number should be non
|
542
|
+
# negative. If not set (or set to 0), the system's default value will be
|
543
|
+
# used.
|
532
544
|
class PostgresqlSourceConfig
|
533
545
|
include ::Google::Protobuf::MessageExts
|
534
546
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -557,6 +569,12 @@ module Google
|
|
557
569
|
# @!attribute [rw] ordinal_position
|
558
570
|
# @return [::Integer]
|
559
571
|
# The ordinal position of the column in the table.
|
572
|
+
# @!attribute [rw] precision
|
573
|
+
# @return [::Integer]
|
574
|
+
# Column precision.
|
575
|
+
# @!attribute [rw] scale
|
576
|
+
# @return [::Integer]
|
577
|
+
# Column scale.
|
560
578
|
class MysqlColumn
|
561
579
|
include ::Google::Protobuf::MessageExts
|
562
580
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -608,6 +626,11 @@ module Google
|
|
608
626
|
# @return [::Integer]
|
609
627
|
# Maximum number of concurrent CDC tasks. The number should be non negative.
|
610
628
|
# If not set (or set to 0), the system's default value will be used.
|
629
|
+
# @!attribute [rw] max_concurrent_backfill_tasks
|
630
|
+
# @return [::Integer]
|
631
|
+
# Maximum number of concurrent backfill tasks. The number should be non
|
632
|
+
# negative. If not set (or set to 0), the system's default value will be
|
633
|
+
# used.
|
611
634
|
class MysqlSourceConfig
|
612
635
|
include ::Google::Protobuf::MessageExts
|
613
636
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -684,7 +707,8 @@ module Google
|
|
684
707
|
# @!attribute [rw] file_rotation_interval
|
685
708
|
# @return [::Google::Protobuf::Duration]
|
686
709
|
# The maximum duration for which new events are added before a file is
|
687
|
-
# closed and a new file is created.
|
710
|
+
# closed and a new file is created. Values within the range of 15-60 seconds
|
711
|
+
# are allowed.
|
688
712
|
# @!attribute [rw] avro_file_format
|
689
713
|
# @return [::Google::Cloud::Datastream::V1::AvroFileFormat]
|
690
714
|
# AVRO file format configuration.
|
@@ -696,6 +720,7 @@ module Google
|
|
696
720
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
697
721
|
end
|
698
722
|
|
723
|
+
# BigQuery destination configuration
|
699
724
|
# @!attribute [rw] single_target_dataset
|
700
725
|
# @return [::Google::Cloud::Datastream::V1::BigQueryDestinationConfig::SingleTargetDataset]
|
701
726
|
# Single destination dataset.
|
@@ -715,6 +740,7 @@ module Google
|
|
715
740
|
# A single target dataset to which all data will be streamed.
|
716
741
|
# @!attribute [rw] dataset_id
|
717
742
|
# @return [::String]
|
743
|
+
# The dataset ID of the target dataset.
|
718
744
|
class SingleTargetDataset
|
719
745
|
include ::Google::Protobuf::MessageExts
|
720
746
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -724,6 +750,7 @@ module Google
|
|
724
750
|
# objects matches the source hierarchy.
|
725
751
|
# @!attribute [rw] dataset_template
|
726
752
|
# @return [::Google::Cloud::Datastream::V1::BigQueryDestinationConfig::SourceHierarchyDatasets::DatasetTemplate]
|
753
|
+
# The dataset template to use for dynamic dataset creation.
|
727
754
|
class SourceHierarchyDatasets
|
728
755
|
include ::Google::Protobuf::MessageExts
|
729
756
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastream-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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-07-25 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.19.1
|
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.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|