google-apis-datastream_v1 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3119f9d8d60fc7ce2f08bcd35c0f7a32ff315396e9230b034cfb429be80ad355
|
4
|
+
data.tar.gz: eb32c51c1e272eec57aa62679fca19c380f7c333317e2d9779f6445685612959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c8cfa1657373861688067de493161abdcee3e604b3cff092c39fd2309b0a5a6cfd7c1070200e62d9539d7a6b029eaa4a8b00e2c900ac5c94f8585afd0d4ec4e
|
7
|
+
data.tar.gz: c4661cd48e430990192c05d704dd64121cb3acbcc548bda8762f1f9e9fb6b48aa24e884ae8c82f8fbbacfbf2788d80626e1596be94fb0bff7abe11f0c32d0f22
|
data/CHANGELOG.md
CHANGED
@@ -184,6 +184,38 @@ module Google
|
|
184
184
|
end
|
185
185
|
end
|
186
186
|
|
187
|
+
# The strategy that the stream uses for CDC replication.
|
188
|
+
class CdcStrategy
|
189
|
+
include Google::Apis::Core::Hashable
|
190
|
+
|
191
|
+
# CDC strategy to start replicating from the most recent position in the source.
|
192
|
+
# Corresponds to the JSON property `mostRecentStartPosition`
|
193
|
+
# @return [Google::Apis::DatastreamV1::MostRecentStartPosition]
|
194
|
+
attr_accessor :most_recent_start_position
|
195
|
+
|
196
|
+
# CDC strategy to resume replication from the next available position in the
|
197
|
+
# source.
|
198
|
+
# Corresponds to the JSON property `nextAvailableStartPosition`
|
199
|
+
# @return [Google::Apis::DatastreamV1::NextAvailableStartPosition]
|
200
|
+
attr_accessor :next_available_start_position
|
201
|
+
|
202
|
+
# CDC strategy to start replicating from a specific position in the source.
|
203
|
+
# Corresponds to the JSON property `specificStartPosition`
|
204
|
+
# @return [Google::Apis::DatastreamV1::SpecificStartPosition]
|
205
|
+
attr_accessor :specific_start_position
|
206
|
+
|
207
|
+
def initialize(**args)
|
208
|
+
update!(**args)
|
209
|
+
end
|
210
|
+
|
211
|
+
# Update properties of this object
|
212
|
+
def update!(**args)
|
213
|
+
@most_recent_start_position = args[:most_recent_start_position] if args.key?(:most_recent_start_position)
|
214
|
+
@next_available_start_position = args[:next_available_start_position] if args.key?(:next_available_start_position)
|
215
|
+
@specific_start_position = args[:specific_start_position] if args.key?(:specific_start_position)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
187
219
|
# A set of reusable connection configurations to be used as a source or
|
188
220
|
# destination for a stream.
|
189
221
|
class ConnectionProfile
|
@@ -944,6 +976,19 @@ module Google
|
|
944
976
|
end
|
945
977
|
end
|
946
978
|
|
979
|
+
# CDC strategy to start replicating from the most recent position in the source.
|
980
|
+
class MostRecentStartPosition
|
981
|
+
include Google::Apis::Core::Hashable
|
982
|
+
|
983
|
+
def initialize(**args)
|
984
|
+
update!(**args)
|
985
|
+
end
|
986
|
+
|
987
|
+
# Update properties of this object
|
988
|
+
def update!(**args)
|
989
|
+
end
|
990
|
+
end
|
991
|
+
|
947
992
|
# MySQL Column.
|
948
993
|
class MysqlColumn
|
949
994
|
include Google::Apis::Core::Hashable
|
@@ -1039,6 +1084,31 @@ module Google
|
|
1039
1084
|
end
|
1040
1085
|
end
|
1041
1086
|
|
1087
|
+
# MySQL log position
|
1088
|
+
class MysqlLogPosition
|
1089
|
+
include Google::Apis::Core::Hashable
|
1090
|
+
|
1091
|
+
# The binary log file name.
|
1092
|
+
# Corresponds to the JSON property `logFile`
|
1093
|
+
# @return [String]
|
1094
|
+
attr_accessor :log_file
|
1095
|
+
|
1096
|
+
# The position within the binary log file. Default is head of file.
|
1097
|
+
# Corresponds to the JSON property `logPosition`
|
1098
|
+
# @return [Fixnum]
|
1099
|
+
attr_accessor :log_position
|
1100
|
+
|
1101
|
+
def initialize(**args)
|
1102
|
+
update!(**args)
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# Update properties of this object
|
1106
|
+
def update!(**args)
|
1107
|
+
@log_file = args[:log_file] if args.key?(:log_file)
|
1108
|
+
@log_position = args[:log_position] if args.key?(:log_position)
|
1109
|
+
end
|
1110
|
+
end
|
1111
|
+
|
1042
1112
|
# Mysql data source object identifier.
|
1043
1113
|
class MysqlObjectIdentifier
|
1044
1114
|
include Google::Apis::Core::Hashable
|
@@ -1248,6 +1318,20 @@ module Google
|
|
1248
1318
|
end
|
1249
1319
|
end
|
1250
1320
|
|
1321
|
+
# CDC strategy to resume replication from the next available position in the
|
1322
|
+
# source.
|
1323
|
+
class NextAvailableStartPosition
|
1324
|
+
include Google::Apis::Core::Hashable
|
1325
|
+
|
1326
|
+
def initialize(**args)
|
1327
|
+
update!(**args)
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# Update properties of this object
|
1331
|
+
def update!(**args)
|
1332
|
+
end
|
1333
|
+
end
|
1334
|
+
|
1251
1335
|
# This resource represents a long-running operation that is the result of a
|
1252
1336
|
# network API call.
|
1253
1337
|
class Operation
|
@@ -2025,6 +2109,25 @@ module Google
|
|
2025
2109
|
end
|
2026
2110
|
end
|
2027
2111
|
|
2112
|
+
# Request message for running a stream.
|
2113
|
+
class RunStreamRequest
|
2114
|
+
include Google::Apis::Core::Hashable
|
2115
|
+
|
2116
|
+
# The strategy that the stream uses for CDC replication.
|
2117
|
+
# Corresponds to the JSON property `cdcStrategy`
|
2118
|
+
# @return [Google::Apis::DatastreamV1::CdcStrategy]
|
2119
|
+
attr_accessor :cdc_strategy
|
2120
|
+
|
2121
|
+
def initialize(**args)
|
2122
|
+
update!(**args)
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
# Update properties of this object
|
2126
|
+
def update!(**args)
|
2127
|
+
@cdc_strategy = args[:cdc_strategy] if args.key?(:cdc_strategy)
|
2128
|
+
end
|
2129
|
+
end
|
2130
|
+
|
2028
2131
|
# A single target dataset to which all data will be streamed.
|
2029
2132
|
class SingleTargetDataset
|
2030
2133
|
include Google::Apis::Core::Hashable
|
@@ -2134,6 +2237,25 @@ module Google
|
|
2134
2237
|
end
|
2135
2238
|
end
|
2136
2239
|
|
2240
|
+
# CDC strategy to start replicating from a specific position in the source.
|
2241
|
+
class SpecificStartPosition
|
2242
|
+
include Google::Apis::Core::Hashable
|
2243
|
+
|
2244
|
+
# MySQL log position
|
2245
|
+
# Corresponds to the JSON property `mysqlLogPosition`
|
2246
|
+
# @return [Google::Apis::DatastreamV1::MysqlLogPosition]
|
2247
|
+
attr_accessor :mysql_log_position
|
2248
|
+
|
2249
|
+
def initialize(**args)
|
2250
|
+
update!(**args)
|
2251
|
+
end
|
2252
|
+
|
2253
|
+
# Update properties of this object
|
2254
|
+
def update!(**args)
|
2255
|
+
@mysql_log_position = args[:mysql_log_position] if args.key?(:mysql_log_position)
|
2256
|
+
end
|
2257
|
+
end
|
2258
|
+
|
2137
2259
|
# Request for manually initiating a backfill job for a specific stream object.
|
2138
2260
|
class StartBackfillJobRequest
|
2139
2261
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DatastreamV1
|
18
18
|
# Version of the google-apis-datastream_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.28.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230719"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,6 +64,12 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class CdcStrategy
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
67
73
|
class ConnectionProfile
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
75
|
|
@@ -196,6 +202,12 @@ module Google
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
197
203
|
end
|
198
204
|
|
205
|
+
class MostRecentStartPosition
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
199
211
|
class MysqlColumn
|
200
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
213
|
|
@@ -208,6 +220,12 @@ module Google
|
|
208
220
|
include Google::Apis::Core::JsonObjectSupport
|
209
221
|
end
|
210
222
|
|
223
|
+
class MysqlLogPosition
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
211
229
|
class MysqlObjectIdentifier
|
212
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
231
|
|
@@ -244,6 +262,12 @@ module Google
|
|
244
262
|
include Google::Apis::Core::JsonObjectSupport
|
245
263
|
end
|
246
264
|
|
265
|
+
class NextAvailableStartPosition
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
247
271
|
class Operation
|
248
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
273
|
|
@@ -358,6 +382,12 @@ module Google
|
|
358
382
|
include Google::Apis::Core::JsonObjectSupport
|
359
383
|
end
|
360
384
|
|
385
|
+
class RunStreamRequest
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
361
391
|
class SingleTargetDataset
|
362
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
393
|
|
@@ -382,6 +412,12 @@ module Google
|
|
382
412
|
include Google::Apis::Core::JsonObjectSupport
|
383
413
|
end
|
384
414
|
|
415
|
+
class SpecificStartPosition
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
385
421
|
class StartBackfillJobRequest
|
386
422
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
423
|
|
@@ -519,6 +555,18 @@ module Google
|
|
519
555
|
end
|
520
556
|
end
|
521
557
|
|
558
|
+
class CdcStrategy
|
559
|
+
# @private
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
561
|
+
property :most_recent_start_position, as: 'mostRecentStartPosition', class: Google::Apis::DatastreamV1::MostRecentStartPosition, decorator: Google::Apis::DatastreamV1::MostRecentStartPosition::Representation
|
562
|
+
|
563
|
+
property :next_available_start_position, as: 'nextAvailableStartPosition', class: Google::Apis::DatastreamV1::NextAvailableStartPosition, decorator: Google::Apis::DatastreamV1::NextAvailableStartPosition::Representation
|
564
|
+
|
565
|
+
property :specific_start_position, as: 'specificStartPosition', class: Google::Apis::DatastreamV1::SpecificStartPosition, decorator: Google::Apis::DatastreamV1::SpecificStartPosition::Representation
|
566
|
+
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
522
570
|
class ConnectionProfile
|
523
571
|
# @private
|
524
572
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -752,6 +800,12 @@ module Google
|
|
752
800
|
end
|
753
801
|
end
|
754
802
|
|
803
|
+
class MostRecentStartPosition
|
804
|
+
# @private
|
805
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
755
809
|
class MysqlColumn
|
756
810
|
# @private
|
757
811
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -776,6 +830,14 @@ module Google
|
|
776
830
|
end
|
777
831
|
end
|
778
832
|
|
833
|
+
class MysqlLogPosition
|
834
|
+
# @private
|
835
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
836
|
+
property :log_file, as: 'logFile'
|
837
|
+
property :log_position, as: 'logPosition'
|
838
|
+
end
|
839
|
+
end
|
840
|
+
|
779
841
|
class MysqlObjectIdentifier
|
780
842
|
# @private
|
781
843
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -837,6 +899,12 @@ module Google
|
|
837
899
|
end
|
838
900
|
end
|
839
901
|
|
902
|
+
class NextAvailableStartPosition
|
903
|
+
# @private
|
904
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
840
908
|
class Operation
|
841
909
|
# @private
|
842
910
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1049,6 +1117,14 @@ module Google
|
|
1049
1117
|
end
|
1050
1118
|
end
|
1051
1119
|
|
1120
|
+
class RunStreamRequest
|
1121
|
+
# @private
|
1122
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1123
|
+
property :cdc_strategy, as: 'cdcStrategy', class: Google::Apis::DatastreamV1::CdcStrategy, decorator: Google::Apis::DatastreamV1::CdcStrategy::Representation
|
1124
|
+
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
|
1052
1128
|
class SingleTargetDataset
|
1053
1129
|
# @private
|
1054
1130
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1089,6 +1165,14 @@ module Google
|
|
1089
1165
|
end
|
1090
1166
|
end
|
1091
1167
|
|
1168
|
+
class SpecificStartPosition
|
1169
|
+
# @private
|
1170
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1171
|
+
property :mysql_log_position, as: 'mysqlLogPosition', class: Google::Apis::DatastreamV1::MysqlLogPosition, decorator: Google::Apis::DatastreamV1::MysqlLogPosition::Representation
|
1172
|
+
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
|
1092
1176
|
class StartBackfillJobRequest
|
1093
1177
|
# @private
|
1094
1178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1156,6 +1156,41 @@ module Google
|
|
1156
1156
|
execute_or_queue_command(command, &block)
|
1157
1157
|
end
|
1158
1158
|
|
1159
|
+
# Use this method to start, resume or recover a stream with a non default CDC
|
1160
|
+
# strategy.
|
1161
|
+
# @param [String] name
|
1162
|
+
# Required. Name of the stream resource to start, in the format: projects/`
|
1163
|
+
# project_id`/locations/`location`/streams/`stream_name`
|
1164
|
+
# @param [Google::Apis::DatastreamV1::RunStreamRequest] run_stream_request_object
|
1165
|
+
# @param [String] fields
|
1166
|
+
# Selector specifying which fields to include in a partial response.
|
1167
|
+
# @param [String] quota_user
|
1168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1170
|
+
# @param [Google::Apis::RequestOptions] options
|
1171
|
+
# Request-specific options
|
1172
|
+
#
|
1173
|
+
# @yield [result, err] Result & error if block supplied
|
1174
|
+
# @yieldparam result [Google::Apis::DatastreamV1::Operation] parsed result object
|
1175
|
+
# @yieldparam err [StandardError] error object if request failed
|
1176
|
+
#
|
1177
|
+
# @return [Google::Apis::DatastreamV1::Operation]
|
1178
|
+
#
|
1179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1182
|
+
def run_stream(name, run_stream_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1183
|
+
command = make_simple_command(:post, 'v1/{+name}:run', options)
|
1184
|
+
command.request_representation = Google::Apis::DatastreamV1::RunStreamRequest::Representation
|
1185
|
+
command.request_object = run_stream_request_object
|
1186
|
+
command.response_representation = Google::Apis::DatastreamV1::Operation::Representation
|
1187
|
+
command.response_class = Google::Apis::DatastreamV1::Operation
|
1188
|
+
command.params['name'] = name unless name.nil?
|
1189
|
+
command.query['fields'] = fields unless fields.nil?
|
1190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1191
|
+
execute_or_queue_command(command, &block)
|
1192
|
+
end
|
1193
|
+
|
1159
1194
|
# Use this method to get details about a stream object.
|
1160
1195
|
# @param [String] name
|
1161
1196
|
# Required. The name of the stream object resource to get.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-datastream_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.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-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastream_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-datastream_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datastream_v1/v0.28.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastream_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|